Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Have an issue with a line chart showing multiple lines each representing a year. 2016 line continues even though there is no data for november and december. How can i get rid of this?
Hey @madden318,
Easy fix, go to the paint roll "Format" tab and under the "X-Axis" dropdown, change the type to "Categorical" instead of "Continuous". This should stop the graph at the last point.
Hope this helps,
Alan
Thanks Alan but it is already on the categorical setting. Has this ever fixed it for you?
Yes it is definitley adding 0 values into may data where there is none. Tried switching it to a line and stacked volume chart and it did the same thing.
Hi @madden318,
You should be able to use BLANK Function (DAX) to skip the value 0 in this scenario. For example, if you are showing "Total Sales" on the Line Chart.
Total Sales = SUM ( Sales[Revenue] )
Then you should be able to show the following measure instead on the Line Chart to skip the value 0.
Measure = IF ( [Total Sales] = 0, BLANK (), [Total Sales] )
Regards
I am typing this on an iPad and have not tested this so this is just a guess...
However I suspect your Calendar table runs till the end of the current year if not beyond...
so try adding a FILTER statement in the Measure you are charting to only calculate till today
something like this...
Measure = CALCULATE ( SUM (...), FILTER ( ALLSELECTED ( 'Calendar' ), 'Calendar'[Date] <= TODAY () )
Again I have not tested this - just a suggestion.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
98 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |