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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
atoms_voyage
New Member

Show limited time period - relative date filter not working

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

atoms_voyage_0-1692345580515.png

 

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

 

5 REPLIES 5
atoms_voyage
New Member

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

Prateek97
Resolver III
Resolver III

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.

amitchandak
Super User
Super User

@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)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I've added a date table to my model, but now my visual looks like this:

atoms_voyage_0-1692348649477.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.