Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I'm trying to get the following visual to show values between July 2022 and today, including all the months in between that don't have any data
The date filters don't seem to do anything. This seems like a super simple use case - it's really frustrating how difficult this is! Please can someone help? Relative date filters don't seem to do anything
I think I've solved this by adding a date table with a new "Year-Month" column, as well as an additional sort column and then manually filtering the "Year-Months" that I want to see. Seems like a really clunky solution though and which will also require me to manually change the filter when I get new data. Is there really no simpler way to do this? I'm amazed that this isn't a common use case in PowerBI
Hi @atoms_voyage ,
Have you enabled the Show items with No Data option on the XAxis Month column. If yes, please disable it and check.
Otherwise you can try creating a calculated column in the table where your date is present. Something Like this:
Flag = IF([Date]>DATE(2022,7,1),1,0)
Then use this flag as a visual on the filter and select '1' as a value.
Please let me know if this works.
Request you to mark this reply as the solution if it solved your problem.
I have show items with no data checked. If I uncheck it then I lose March and June 2023 which have no data but which I want to show.
Every row in my table has a date, and the date is always (by definition) greater or equal than the minimum date so the flag you suggest will always be true and won't filter anything out.
@atoms_voyage , Make sure you are using a date table joined with the date of your table. Try a measure like
0 between range
Measure = var _1= [Your Measure] +0
var _min = eomonth(today(), -13)+1
var _max = today()
return
if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1)
I've added a date table to my model, but now my visual looks like this:
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |