I have a line chart in Power BI that tracks different metrics over time. The X axis is week number (e.g. 1st week of the year is 1 and so on). A slicer is used to select which weeks to look at.
However, no matter what's selected on the slicer the chart only goes up to week 12:
I've confirmed that the table this chart gets data from is fully populated up to week 14. If I add a card to the report holding any of the metrics used in the chart, they show data for weeks 13 & 14.
If I go into the x axis settings and set the end of the axis to 14 the axis goes up to 14 but the chart still shows no data beyond week 12.
Does anyone know what the problem might be please?
If it helps, the x axis is set to type = continuous and scale type = linear.
Related
I have the following SharePoint Lists:
Plans:
Plan
Curve
Description
Plan001
Curve001
asdf
Plan002
Curve002
asdf
Curves:
Curve
ValueA
MeasureA
ValueB
MeasureB
Curve001
10
100
50
100
Curve002
20
30
40.
80.
A User can select a Plan in Power BI. When the plan gets selected, I want to draw a Visualization of the corresponding curve E.g. when Plan001 gets selected, Curve001 should be drawn. The Points consist of the Values (X-Axis) and Measures (Y-Axis)
I managed to get all the values with either measure column or calculation column. But I am not able to draw the line chart. This is probably because each field in the curve table is also a own column.
The chart works perfectly if I create a table like this from hand:
Value
Measure
10
100
50
100.
Is there any way to transform the table, measure columns or calculation columns to such a table automatically? Or do you know a way how I could achieve this?
Unfortunately, I can't change the SharePoint list.
I have a spreadsheet that has information on credit card applications. In Power BI, I have created calculations to calculate the number of applications (COUNT), and other calculated measures that give me the number of applications based on different filters (CALCULATE).
I then created a slicer that slices the data based on type of card. So say I have a line chart that shows the number of applications for males and females, I can then use the slicer to select different cards.
The trouble I'm running into, is that some cards have a lot more applicants than another. This can be difficult for display, as I set certain Y Axis ranges for the data labels to be clear. So if I have one line chart that the minimum is 100 and max is 500 for one card, if I click on another card in the slicer, then the Y axis size is still 100 - 500, which isn't great if another card in the slicer pane only has 50 applicants.
Does anyone know of a creative way to dynamically change the Y Axis sizes, based on a slicer selection?
I'm new in Power BI and I would like to a create a line chart, with Selected Days and Hours on X axis, and the sum of values on Y axis in a selected Year. For example:
As you can see I could do it, but with a scrollbar. I can't change the X axis type to continous because days (Monday, Tuesday etc.) are string. So I made a column with integers (like 1 is Monday, 7 is Sunday etc.). But it doesn't work either.
I would like to see the whole chart on page without scrollbar.
Let me know if it is possible, thank you!
In order to use a "continuous" X-axis you need to have a numeric column, in your case, even if you replace the "day name" with its corresponding number the value will be a string ie: "Saturday 11" → "6 11", also check the current data type of the column, maybe you just need to set it as number.
Now let's say you make a meaningful number to represent your data and use a continuous X-axis, you won't have a scrollbar anymore, but you also won't be able to see all the values of the X-axis (you might see a value label every 5-10-20 values), and there is also the sorting to take into consideration.
About the X-axis sorting, as of now, it looks totally random to me. Since the chart context is given by "year", to have a meaningful sorting of your dates you need at least a sorting key that represent Month and Day, if you want to use it in the axis itself as a number it should be in the format "MMDD"
When I have more than one year of monthly data in my Clustered Column chart my data bars get squashed and separated with the x axis type set to Continuous. Setting the x axis type to Categorical fixes the problem but I lose the Trend Line. The Trend Line is a must-have requirement from the end user so I can't leave it out.Desired Result but I need a Trend Line
This is what happens with the x axis set to Continuous:
When I reduce the amount of data to 12 months everything is ok - bars look good and I have a trend line - surely I should be able to display more that one year's worth of data?
This is what I want but I want to display more than one year's worth of monthly data
your suggestion seemed to work for the most part but my Month Year labels aren't lining up with the correct columns. For instance Jul 2019 should be directly under the right-most columns. Also, how can I get Month Year labels under every column not just every few.
Note that the Month Year labels seem to be shifted one column to the left
Hi I'm trying to create a Bar Chart like this (This chart is an illustration, not created from data yet):
If the data is being fetched from a single table, how can I have dual color scheme for bar is past and future. Also how can I place a moving marker that automatically updates the TODAY placard based on whenever the report is viewed and accordingly bars should follow the past and future color schemes.
Schema is roughly as follows:
Table1: Issue ID, Release name, issue priority
Table2: Release name, Release date
In Power BI as well as in Excel, the secret is in the data layout. You can't just have all your past and future data in two columns and magically expect that some of them will turn out red and orange instead of dark and light gray.
You will need to prep your data source to include stacked series for the light gray, dark gray, red and orange series. Stack all series on top of each other and make sure that where the red and orange series have values, there are only zero values for the gray series.
I suggest you use four columns for four stacked series and divide the values accordingly.
In Power BI, you can apply the same principle as in this Excel screenshot.
Let me know if you need help translating that to Power BI.
Edit: The Power BI data does not have to be static. You can build columns with Dax functions that arrange the data in the pattern required. Add four columns to your data model with the formulas
chtPastProdA = if(tblProducts[Date]<TODAY(),tblProducts[Product A],0)
chtPastProdB = if(tblProducts[Date]<today(),tblProducts[Product B],0)
chtFutureProdA = if(tblProducts[Date]>=today(),tblProducts[Product A],0)
chtFutureProdB = if(tblProducts[Date]>=today(),tblProducts[Product B],0)
Then build a stacked column chart and stack all four of these series. Format the colors.
For the "Today" marker you would need a custom label, which Power BI currently does not support. But since the demarcation between gray and red/yellow is today, it's quite obvious where the current date is, anyway.