cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
User5231
Helper I
Helper I

Power BI Graph Date Issues

I am having a heck of a time understanding why this isn't working. I have a measure that calculates a value for a time period. I am graphing that in a chart month over month. So I have a filter that fitler the last 6 months. In the 1st graph it shows the result, but you see I am missing March, which is 0, but i want to see a 0 there. However, if I check Show Items with no Data, it solves it but also shows all previous and futrure dates, regardless of the filter slicer. 

 

I tried adding +0 to the measure, which works for March, but it displays all the previosu month outside of the filter for some reason. This is pretty frustraining....

 

Past 6 month...

Pic1.png

 

This is with show items with no data / with the +0 in the measure. As you can see, the date slicer only affects which dates have data on them, not which dates get displayed. 

 

Pic2.png

The only way I have gotten it to work is using the hieharchy in the date slicer, but that it no good because I need the date to be dynamic. As you can see below, adding a relative filter on the visual will not affect it.Pic3.png

In all this seems to be an issue with hiearchy that I cannot figure out. Appreciate any help.

1 ACCEPTED SOLUTION
parry2k
Super User III
Super User III

@User5231 there is a great video on this, take  look at this and apply the logic in your report Show blank as zero – Unplugged #20 - SQLBI

 

Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

2 REPLIES 2
parry2k
Super User III
Super User III

@User5231 there is a great video on this, take  look at this and apply the logic in your report Show blank as zero – Unplugged #20 - SQLBI

 

Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

This worked. I made a tweak so that only the selected dates would return a 0, all else would show blank.

Pic4.png

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors