- Artikel
GILT FÜR:️ Power BI Desktop
Power BI-Dienst
In diesem Tutorial lernen Sie verschiedene Möglichkeiten zum Anpassen der X- und Y-Achse in Ihren visuellen Elementen kennen. Nicht alle visuellen Elemente verfügen über Achsen. Kreisdiagramme haben z.B. keine Achsen. Außerdem variieren die Anpassungsoptionen visueller Elemente. Die vielen Optionen können nicht in einem einzigen Artikel behandelt werden, darum betrachten wir die gängigsten Anpassungen, damit Sie sich mit dem visuellen Bereich Format im Berichtszeichenbereich von Power BI vertraut machen können.
Sehen Sie, wie Amanda ihre X- und Y-Achse anpasst. Sie zeigt außerdem die verschiedenen Möglichkeiten, die Verkettung beim Einsatz von Drilldown- und Drillupoptionen zu steuern.
Hinweis
In diesem Video werden möglicherweise frühere Versionen von Power BI Desktop oder des Power BI-Diensts verwendet.
Voraussetzungen
Power BI Desktop
Analysebeispiel für den Einzelhandel
Hinzufügen einer neuen Visualisierung
Bevor Sie die Visualisierung anpassen können, müssen Sie sie erstellen.
Öffnen Sie in Power BI Desktop das Analysebeispiel für den Einzelhandel.
Wählen Sie unten das gelbe Plus-Symbol aus, um eine neue Seite hinzuzufügen.
Wählen Sie im Bereich Visualisierungen das Symbol für das gestapelte Säulendiagramm aus. Dadurch wird im Berichtszeichenbereich eine leere Vorlage hinzugefügt.
Um die Werte der X-Achse einzustellen, wählen Sie im Bereich Felder die Option Zeit>FiscalMonth aus.
Um die Werte der Y-Achse einzustellen, wählen Sie im Bereich FelderVerkäufe>Verkäufe im letzten Jahr und Verkäufe>Verkäufe in diesem Jahr>Wert aus.
(Video) We Have NEVER Seen This Machine Before! | Kitchen & Walker Horizontal Facing Borer
Jetzt können Sie Ihre X-Achse anpassen. In Power BI steht Ihnen eine nahezu unbegrenzte Anzahl von Optionen zum Formatieren der Visualisierung zur Verfügung.
Anpassen der X-Achse
Es gibt zahlreiche Features, die für die X-Achse anpassbar sind. Sie können die Datenbezeichnungen und den Titel der X-Achse hinzufügen und ändern. Für Kategorien können Sie die Breite, Größe und Abstand von Balken, Spalten, Linien und Flächen ändern. Und für Werte können Sie die Anzeigeeinheiten, Dezimalstellen und Gitternetzlinien ändern. Wenn der Datentyp der primären Achse skalar ist, können Sie zwischen kontinuierlicher (Standard für skalare Typen wie numerisch und DateTime) oder kategorischer Achse auswählen. Kontinuierliche Achsen können eine lineare oder logarithmische Skalierung aufweisen und alle Daten ohne Scrollen anzeigen. Kategorische Achsen zeigen die Kategoriebezeichnung für jeden Datenpunkt an und scrollen, wenn der Inhalt nicht in die Zeichnungsfläche passt.
Das folgende Beispiel zeigt die Anpassung für ein Säulendiagramm. Fügen wir ein paar Anpassungen hinzu, um Sie mit den Optionen vertraut zu machen. Anschließend können Sie die restlichen Optionen selbstständig erkunden.
Anpassen der Bezeichnungen der X-Achse
Die Bezeichnungen der X-Achse werden unterhalb der Spalten im Diagramm angezeigt. Momentan sind sie hellgrau, klein und schwer zu lesen. Das ändern wir jetzt.
Wählen Sie im Bereich für Visualisierungen die Option Formatierung (das Pinselsymbol
) aus, um die Anpassungsoptionen anzuzeigen.
Erweitern Sie die Optionen für die X-Achse.
Setzen Sie den X-Achse-Schieberegler auf Ein.
Das Einstellen der X-Achse auf Aus empfiehlt sich zum Beispiel dann, wenn die Visualisierung ohne Bezeichnungen selbsterklärend ist oder wenn eine Berichtsseite zu voll ist und Sie Platz für weitere Daten schaffen müssen.
Formatieren Sie Textfarbe, Textgröße und Schriftart:
Farbe: Wählen Sie Schwarz aus.
Textgröße: Geben Sie 14 ein.
Schriftfamilie: Wählen Sie Arial Black aus.
Spalten: Öffnen des Abstands
Innenabstand: Geben Sie 40% ein.
Vielleicht gefällt Ihnen nicht, wie der Text der X-Achse an einer Diagonalen dargestellt ist. Sie haben mehrere Optionen.
- Ändern Sie die Textgröße in eine Größe, die kleiner als 14 ist.
- Vergrößern Sie die Visualisierung.
- Zeigen Sie weniger Spalten an und fügen Sie eine Scrollleiste hinzu, indem Sie den Wert für Mindestbreite für Kategorie erhöhen.
Hier haben wir die zweite Option ausgewählt und anhand einer der Leisten für die Größenanpassung die Visualisierung verbreitert. Jetzt ist Platz für den 14-Punkte-Text, ohne dass der Text in einem Winkel oder mit einer Scrollleiste angezeigt werden muss.
(Video) HIDDEN HISTORY OF HUMANITY (UnchartedX) Ben van Kerkwyk
Anpassen des Titels der X-Achse
Wenn der Titel der X-Achse auf Ein eingestellt ist, wird der Titel der X-Achse unter den Bezeichnungen der X-Achse angezeigt.
Beginnen Sie, indem Sie den Titel der X-Achse auf Ein stellen.
Zuerst wird Ihnen auffallen, dass die Visualisierung jetzt einen Standardtitel für die X-Achse enthält. In diesem Fall ist es FiscalMonth.
Formatieren Sie die Textfarbe, die Textgröße und die Schriftart des Titels:
Titelfarbe: Wählen Sie Orange aus.
Achsentitel: Geben Sie Fiscal Month ein (mit Leerzeichen).
Größe des Titeltexts: Geben Sie 18 ein.
Nachdem Sie die Anpassungen abgeschlossen haben, wird Ihr gestapeltes Säulendiagramm in etwa so aussehen:
Speichern Sie die Änderungen, die Sie vorgenommen haben, und fahren Sie mit dem nächsten Abschnitt fort. Wenn Sie einmal alle Änderungen zurücksetzen müssen, wählen Sie Standardwert wiederherstellen am unteren Rand des Anpassungsbereichs der X-Achse aus. Als Nächstes passen Sie Ihre Y-Achse an.
Anpassen der Y-Achse
Es gibt zahlreiche Features, die für die Y-Achse angepasst werden können. Sie können die Datenbezeichnungen, den Titel der Y-Achse und die Gitternetzlinien hinzufügen und ändern. Für Werte können Sie die Anzeigeeinheiten, Dezimalstellen, Ausgangs- und Endpunkt ändern. Und für Kategorien können Sie die Breite, Größe und Abstand von Balken, Spalten, Linien und Flächen ändern.
Das folgende Beispiel setzt unsere Anpassung eines Säulendiagramms fort. Führen wir ein paar Änderungen aus, um Sie mit den Optionen vertraut zu machen. Anschließend können Sie die restlichen Optionen selbstständig erkunden.
Anpassen der Bezeichnungen der Y-Achse
Die Bezeichnungen der Y-Achse werden standardmäßig auf der linken Seite angezeigt. Momentan sind sie hellgrau, klein und schwer zu lesen. Das ändern wir jetzt.
Erweitern Sie die Optionen für die Y-Achse.
Setzen Sie den Y-Achse-Schieberegler auf Ein.
(Video) Zweite x-Achse in Excel-Diagramm (Sekundärachse einfügen) - Daten visualisieren in Excel (45)Das Deaktivieren der Y-Achse empfiehlt sich u.a., um mehr Platz für weitere Daten zu schaffen.
Formatieren Sie Textfarbe, Textgröße und Schriftart:
Farbe: Wählen Sie Schwarz aus.
Textgröße: Geben Sie 10 ein.
Anzeigeeinheiten: Wählen Sie Millionen aus.
Anpassen des Titels der Y-Achse
Wenn der Titel der Y-Achse auf Ein eingestellt ist, wird der Titel der Y-Achse neben den Bezeichnungen der Y-Achse angezeigt. Da dieses Visual durch eine Y-Achse nicht verbessert wird, lassen Sie Titel auf Aus. Wir werden später in diesem Tutorial einem visuellen Element mit zwei Achsen Titel für die Y-Achse hinzufügen.
Anpassen der Gitternetzlinien
Wir heben die Gitternetzlinien durch Ändern der Farbe und Erhöhen der Strichstärke hervor:
Erweitern der Registerkarte „Gitternetzlinien“: „Horizontal“ auswählen
Farbe: Wählen Sie Orange aus.
Stärke: Geben Sie 2 ein.
Nach diesen Anpassungen sollte Ihr Säulendiagramm etwa so aussehen:
Anpassen von Visualisierungen mit zwei Y-Achsen
Für einige Visualisierung haben zwei Y-Achsen Vorteile. Kombinationsdiagramme sind ein gutes Beispiel. Bevor wir zwei Y-Achsen formatieren können, erstellen wir ein Kombinationsdiagramm, das die Trends für Umsatz und Bruttomarge vergleicht.
Erstellen eines Diagramms mit zwei Y-Achsen
Wählen Sie das Säulendiagramm und ändern Sie es in ein Linien- und gestapeltes Säulendiagramm. Dieser Visualtyp unterstützt Werte in Liniendiagrammen mit einer Linie und Werte in Diagrammen mit gestapelten Säulen.
Ziehen Sie Verkäufe>Bruttomarge im Vorjahr % aus dem Bereich „Felder“ in den Bucket Zeilenwerte.
(Video) Mark of the Beast 2 | Everything you need to know | Mark FinleyFormatieren Sie die Visualisierung neu, um die angewinkelten Bezeichnungen der X-Achse zu entfernen.
Power BI erstellt zwei Y-Achsen und ermöglicht die unterschiedliche Skalierung der Werte. Die linke Achse misst die Umsätze in US-Dollar und die rechte die Prozentzahlen des Bruttogewinns.
Formatieren der zweiten Y-Achse
Da wir die Visualisierung mit einer formatierten Y-Achse begonnen haben, hat Power BI die zweite Y-Achse mit den gleichen Einstellungen erstellt. Das können wir aber ändern.
Wählen Sie im Bereich Visualisierungen das Pinselsymbol aus, um die Formatierungsoptionen anzuzeigen.
Erweitern Sie die Optionen für die sekundäre Y-Achse.
Überprüfen Sie, ob sie auf Ein gesetzt ist. Die zweite Y-Achse stellt das Liniendiagramm dar.
(Optional) Passen Sie die Schriftfarbe, die Größe und die Anzeigeeinheiten für die beiden Achsen an. Wenn Sie die Position für die Spaltenachse oder Zeilenachse wechseln, werden die Seiten der beiden Achsen vertauscht.
Hinzufügen von Titeln zu beiden Achsen
Bei einer so komplexen Visualisierung ist es hilfreich, wenn den Achsen Titel hinzugefügt werden. Mithilfe von Titeln können Ihre Kollegen nachvollziehen, was mit der Visualisierung angegeben werden soll.
Legen Sie Titel für Y-Achse (Spalte) und Y-Achse (Linie) auf Ein fest.
Legen Sie für Stil für beide die Option Nur Titel anzeigen fest.
Das Kombinationsdiagramm zeigt nun zwei Achsen mit Titeln an.
Formatieren Sie die Titel. In diesem Beispiel haben wir einen der Titel verkürzt und den Schriftgrad für beide reduziert.
- Schriftgrad: 9
- Gekürzter Achsentitel für die erste Y-Achse (das Säulendiagramm): Verkäufe im letzten Jahr & in diesem Jahr.
Weitere Informationen finden Sie unter Tipps und Tricks zur Farbformatierung in Power BI und Anpassen der Titel, Legenden und Hintergründe von Visualisierungen.
Umkehren der Y-Achse
Für Linien-, Balken-, Säulen-, Flächen- und Kombinationsdiagramme können Sie die Y-Achse invertieren, indem Sie positive Werte nach unten und negative Werte nach oben setzen.
Wählen Sie das Visual aus. Erweitern Sie im Bereich Formatierung den Abschnitt Y-Achse, dann den Abschnitt Bereich. Verschieben Sie Bereich umkehren auf Ein.
Überlegungen und Einschränkungen
- Bei Teilstrichen der kontinuierlichen Achse können Sie die Formatzeichenfolge nicht steuern. PowerBI wählt den besten Strichabstand basierend auf Ihrem Datenbereich aus und erstellt eine minimale Formatzeichenfolge für diesen Einheitsabstand, um Speicherplatz zu bewahren. Datumswerte werden basierend auf Ihrem System- oder Browser-Gebietsschema lokalisiert.
Nächste Schritte
- Visualisierungen in Power BI-Berichten
Weitere Fragen? Wenden Sie sich an die Power BI-Community
FAQs
How do I change the orientation of the x-axis labels in power bi? ›
PowerBI does not let you override the label orientation but rather adjusts it based on the space you allocate to the visual. Try making your visual a bit wider. For long labels, increase the maximum size of the X Axis on the settings to give more space to the labels and less to the bars.
How do I change the x-axis date format in power bi? ›Hi @Anonymous , Go to format pane, change the type of x-axis to "Categorical". Then change the format of the date column to what you want it to look like.
How do I show the date on the x-axis in power bi? ›When you drag the date column to Axis of a line chart, it will automatically enable date hierarchy. You can check the column name instead of the Date Hierarchy. The date value in the X-axis will display based on the visual width and number of records in this date column.
What is the difference between categorical and continuous data in power bi? ›A continuous x-axis is used for date type data where Year and Month labels are incrementally spaced according to the number of data points plotted. This is compared to a categorical axis where there is a label for every data point.
How do I turn off x-axis labels? ›To hide or remove X-axis labels, use set(xlabel=None). To display the figure, use show() method.
How do I change the x-axis date format? ›Expand Axis Options, and then under Axis Type, make sure Date axis is selected. Under Units, next to Base, select Days, Months, or Years. Notes: You cannot have a date axis if the dates in your chart appear in the legend.
How do you change the x-axis data? ›Right-click on the X-axis and then click on Format Axis. 3. Now click on Axis Options button and in the Labels option, under Interval between labels, select Specify interval unit and type your desired interval value in the box next to it.
How do I change the x-axis in sheets? ›- On your computer, open a spreadsheet in Google Sheets.
- Select the cells you want to include in your chart.
- Click Insert. Chart.
- At the right, click Setup.
- In the box next to "x-axis," click More. Edit.
- Select the cells you want to show on the horizontal axis.
- Click OK.
- Select the chart. Navigate to the chart containing your desired data. ...
- Open "Select Data" Right-click anywhere in the chart to open the drop-down menu of settings. ...
- Click "Switch Row/Column" ...
- Press "OK"
- Open Excel. ...
- Select all the data that you want included in the bar chart.
- Be sure to include the column and row headers, which will become the labels in the bar chart. ...
- Click on the Insert tab and then on Insert Column or BarChartbutton in the Charts group. ...
- The chart will appear.
Where is Y-axis and x-axis? ›
A coordinate grid has two perpendicular lines, or axes (pronounced AX-eez), labeled just like number lines. The horizontal axis is usually called the x-axis. The vertical axis is usually called the y-axis. The point where the x- and y-axis intersect is called the origin.
How to find correlation between categorical and continuous variables? ›The ANOVA and Point Biserial tests can be used to calculate the correlations between categorical and continuous variables. The data should be normally distributed and of equal variance is a primary assumption of both methods.
Can you mix categorical and continuous variables? ›yes it is possible to combine categorical and continuous variable. These designs are inbuild in many softwares like design expert. Think categorical variables as blocks and you can do it. During analysis you will get two different equation representing each categorical variable.
Do you label X or y-axis first? ›X and y coordinates (axis) are horizontal and vertical addresses in a 2D space. The order of the x and y coordinates in the ordered pair is important. The x coordinate always comes first, followed by the y coordinate.
Is it X vs Y or Y vs X on a graph? ›When we prepare a graph the independent variable is always on the “x-axis”, and the dependent variable is always on the “y-axis”. We indicate which variable is which by saying as a function of or “versus”, with the dependent variable coming first, and the independent variable coming second.
Do you label a graph X vs y-axis? ›The proper form for a graph title is "y-axis variable vs. x-axis variable." For example, if you were comparing the the amount of fertilizer to how much a plant grew, the amount of fertilizer would be the independent, or x- axis variable and the growth would be the dependent, or y-axis variable.
How do I change my x-axis labels to vertical? ›In the Format Axis dialog box, click Alignment. Under Text layout, do one or more of the following: In the Vertical alignment box, click the vertical alignment position that you want. In the Text direction box, click the text orientation that you want.
How do I remove labels from the Y axis? ›When we create a plot in R, the Y-axis labels are automatically generated and if we want to remove those labels, the plot function can help us. For this purpose, we need to set ylab argument of plot function to blank as ylab="" and yaxt="n" to remove the axis title.
How do I change the color of my x-axis label? ›To set the color for X-axis and Y-axis, we can use the set_color() method (Set both the edgecolor and the facecolor). To set the ticks color, use tick_params method for axes. Used arguments are axis ='x' (or y or both) and color = 'red' (or green or yellow or ...etc.)
How do I change the date format from DD MM YY to MM DD YY? ›- Select the dates whose format your want to change, or empty cells where you want to insert dates.
- Press Ctrl+1 to open the Format Cells dialog. ...
- In the Format Cells window, switch to the Number tab, and select Date in the Category list.
- Under Type, pick a desired date format.
How do I change the date format of a variable? ›
We change the date format from one format to another. For example - we have stored date in MM-DD-YYYY format in a variable, and we want to change it to DD-MM-YYYY format. We can achieve this conversion by using strtotime() and date() function. These are the built-in functions of PHP.
How do you change the XY axis in Prism? ›Click on an axis to select it. Knobs appear on both ends. Move the mouse over the right knob of the X-axis or the top knob of the Y-axis. Drag the axis to make it longer or shorter.
How do you select data for x-axis in Excel? ›From the Design tab, Data group, select Select Data. In the dialog box under Horizontal (Category) Axis Labels, click Edit. In the Axis label range enter the cell references for the x-axis or use the mouse to select the range, click OK. Click OK.
How do you make an XY line graph in Google Sheets? ›Go to the “Insert” tab and click ”Chart”, or navigate to the “Insert chart” icon in the toolbar. Then, you have a default chart on a sheet, and a chart editor shows up on the right. In the “Setup” tab of the editor, select “Line chart” in the “Chart” type section.
How do I extend the horizontal axis in Excel? ›- Click anywhere in the chart. ...
- On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click Horizontal (Category) Axis.
The x-axis is called abscissa. The y-axis is called ordinate. The variables on the x-axis represent the cause of the data. The variables on the y-axis represent the effect of the cause of the data.
How do you use the X and y-axis? ›Scientists like to say that the "independent" variable goes on the x-axis (the bottom, horizontal one) and the "dependent" variable goes on the y-axis (the left side, vertical one).
Which axis is X and Y and Z? ›The x axis is in the plane of the screen and is positive toward the right and negative toward the left. The y axis is in the plane of the screen and is positive toward the top and negative toward the bottom. The z axis is perpendicular to the screen or keyboard, and is positive extending outward from the screen.
How to analyze relationship between two continuous variables? ›In statistical terms, correlation is a method of assessing a possible two-way linear association between two continuous variables. Correlation is measured by a statistic called the correlation coefficient, which represents the strength of the putative linear association between the variables in question.
Can you correlate two categorical variables? ›Further, if either variable of the pair is categorical, we can't use the correlation coefficient. We will have to turn to other metrics. If x and y are both categorical, we can try Cramer's V or the phi coefficient. If x is continuous and y is binary, we can use the point-biserial correlation coefficient.
Can you use categorical and continuous variables in multiple regression? ›
Categorical variables require special attention in regression analysis because, unlike dichotomous or continuous variables, they cannot by entered into the regression equation just as they are. Instead, they need to be recoded into a series of variables which can then be entered into the regression model.
What is the best way to change data source in Power BI? ›To do this, in Power BI desktop, select File, then Options and settings, and then Data source settings. This allows you to change the source settings for all affected queries at the same time. You simply select Change Source and then include the new location of the file here.
What is the purpose of categorizing data? ›Data classification is important because it allows organizations to understand the types of information they are processing and storing. The knowledge gained through data classification allows a company to take the necessary measures to protect the data based on its importance or sensitivity.
Which is the best comparison chart in Power BI? ›– If you need to compare the change in some parameters over a period, a column chart with time shown from left to right is preferable. – The horizontal bar chart is a preferable choice if you have many categories or long labels for each data point.
Should I convert a continuous variable to a categorical variable? ›Do not do it unless you have to. Plot and understand the continuous variable first. If you do it, try not to throw away too much information. Repeat your analyses both with the continuous data and categorical data to ensure there is no difference in the conclusion (often called a sensitivity analysis).
Can a variable be both numeric and categorical? ›Ordinal data can be classified as both categorical and numerical data. Numerical and categorical data can not be used for research and statistical analysis.
Why is continuous better than categorical? ›As demonstrated above, treating an experimental variable as continuous rather than categorical during analysis has a number of advantages. First, it will generally have greater statistical power. Second, because fewer parameters are used to describe the data, it is more parsimonious.
How do you rotate X labels? ›- Make a list (x) of numbers.
- Add a subplot to the current figure.
- Set ticks on X-axis.
- Set xtick labels and use rotate=90 as the arguments in the method.
- To display the figure, use show() method.
- Create two lists, x, and y.
- Create labels with a list of different cities.
- Adjust the subplot layout parameters, where bottom = 0.15.
- Add a subplot to the current figure, where nrow = 1, ncols = 2 and index = 1.
- Plot the line using plt. ...
- Get or set the current tick locations and labels of the X-axis.
Right-click the value axis labels you want to format, and then select Format Axis. In the Format Axis pane, select Number. Tip: If you don't see the Number section in the pane, make sure you've selected a value axis (it's usually the vertical axis on the left). Choose the number format options you want.
How do I change the axis direction in origin? ›
To control the settings for a single axis, you can use the Orientation option in the Show tab of Axis dialog. Rotate the tick labels, ticks and axis titles in the planes of their respective axes. Rotate the tick labels, ticks and axis titles in the plane of the screen.
What is the Xtickangle rotation? ›xtickangle( angle ) rotates the x-axis tick labels for the current axes to the specified angle in degrees, where 0 is horizontal. Specify a positive value for counterclockwise rotation or a negative value for clockwise rotation.
How do I change the position of a label in a chart? ›- On a chart, do one of the following: To reposition all data labels for an entire data series, click a data label once to select the data series. ...
- On the Layout tab, in the Labels group, click Data Labels, and then click the option that you want.
In the Format Axis dialog box, click Scale, and under Value axis scale, modify any of the following options: To change the number at which the vertical (value) axis starts or ends, for the Minimum or Maximum option, type a different number in the Minimum box or the Maximum box.
How do you stagger x-axis labels? ›One way to solve this problem is to right-click the axis on the chart and select Format Axis from the shortcut menu. Then in the Format Axis task pane, under Labels, set the Label Position to Low.
How do you set the x-axis scale? ›To change the scale of the x-axis, simply right click on any of the values on the x-axis. In the dropdown menu that appears, click Format Axis: What is this? In the Format Axis panel that appears on the right side of the screen, change the values in the Minimum and Maximum boxes to change the scale of the x-axis.
How do I change the position of the x-axis label in R? ›By default, the position of X-axis is at the bottom and we know that it is always there in all software/programming tools. If we want to change the position of X-axis in base R plot then we can use axis function with pos argument. The pos argument will decide the position of the X-axis on Y-axis.
How do you change the horizontal axis scale? ›Click on Axes in the Format menu. Click on Primary Horizontal Axis or Primary Vertical Axis, depending on which axis you want to change. Click on Scale in the Axes menu. Change the settings in the Scale menu to suit your needs.
How do I change the horizontal axis labels in sheets? ›- On your computer, open a spreadsheet in Google Sheets.
- Double-click the chart you want to change.
- At the right, click Customize.
- Click Chart & axis title.
- Next to "Type," choose which title you want to change.
- Under "Title text," enter a title.
- Make changes to the title and font.