Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
I have some charts where there is no data for all the months, but i still want to have these months shown, e.g last 12 months when i select show items with no data and add a data filter to show the last 15 weeks it will still take all the dates from the calendar tabl
Solved! Go to Solution.
Hi, you need to force a zero to be displayed instead of null if no results and then limit what gets displayed so you don't show all values in your date table/range. Lots of ways to do this.
Here is what I do to force zero results.
Result with Zero = VAR result = [Measure or Calc] RETURN IF(result,result,0)
You can then use the Visual Filters to limit to last 12 Months, 12, Weeks or whatever or use some other blocking function to only show this result if there data in anotehr measure.
See this example I built for someone else that domonstrates this principle in this case I'm using a visual filter to only display resultls where there is actual data.
https://1drv.ms/u/s!AuCIkLeqFmlhhJh3pj3q9XzrxpxAng
Can you share example? Do you have a date table?
Once you have your graph showing all time when you select the all values even with zero. Filter the visual based on relative dates (see snip below)
This worked for me thanks.
I had to use && instead of the AND( though.
@Anonymous,
As mentioned above, visual level filter is more credible.
Yes, my filter worked when I only used Visual Level Filter as suggested vs. adding an end-user filter onto the canvas. This does seem like a bug in the sense that Power BIs (data element) dropdown option of "Show Items with No Data" doesn't appear to work.
Similar to the initial question, my issue was in regards to a date field. Perhaps the "Show Items with No Data" option works for non-date data types?
i cannot get it to work sorry
Can you share example? Do you have a date table?
Once you have your graph showing all time when you select the all values even with zero. Filter the visual based on relative dates (see snip below)
This doesnt work for the proposed problem - sorry 🙂
Hi, you need to force a zero to be displayed instead of null if no results and then limit what gets displayed so you don't show all values in your date table/range. Lots of ways to do this.
Here is what I do to force zero results.
Result with Zero = VAR result = [Measure or Calc] RETURN IF(result,result,0)
You can then use the Visual Filters to limit to last 12 Months, 12, Weeks or whatever or use some other blocking function to only show this result if there data in anotehr measure.
See this example I built for someone else that domonstrates this principle in this case I'm using a visual filter to only display resultls where there is actual data.
https://1drv.ms/u/s!AuCIkLeqFmlhhJh3pj3q9XzrxpxAng
You solution doesnt work for the example - sorry 🙂
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
96 | |
90 | |
81 | |
69 |
User | Count |
---|---|
157 | |
125 | |
116 | |
111 | |
95 |