Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
TimmK
Helper IV
Helper IV

Relative Date Does not Work with "Show Items Without Data"

I want to see all months between a specific range even if the values are blank. Thus, I selected "Show items without data".

 

Yet, then the relative date filter does not work anymore. I erroneously see months before and after the desired time span. In this case I only want to see months between 2019 and the current month.

 

How can this be solved?

 

1.PNG

 

2.PNG

3 REPLIES 3
johnt75
Super User
Super User

You could try adding a new column onto your Date table to act as a filter, e.g. if you wanted to show the last 24 months add a column as

Within 24 months = IF ( 'Date'[Date] <= TODAY() && 'Date'[Date] >= DATE( YEAR(TODAY()), MONTH(TODAY()) - 24, 1 ), 1 )

then add the new column onto your visual as a filter to only show when the value is 1

Thanks, but this does not work. The blank months before and after the time frame are still shown.

 

3.PNG

 

4.PNG

The only other thing I could suggest is to amend the base measure, or create another version of it if you are using it elsewhere.

The basic principle would be to check whether or not the date is within the 24 month window and only return a value if it is within the window. Wrap the return in a COALESCE statement so that it will return 0 instead of blank. You could then switch off the "show items with no data".

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors