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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
danyeungw
Helper II
Helper II

Need Help Date Filter Type "Relative date"

I used the filter type "Relative date" and select "is in the last 6 month". The date range came out 7/27/2022 - 1/26/2023. The bar for 2022-07 had data from 7/27 - 7/31. It is irrelevant. How can I exclude the bar for 2022-07? Or how can I set the bar chart displalys 6 bars for each group? Or if there other solutions? Thanks.

 

danyeungw_1-1674754332179.png

 

 

2 REPLIES 2
danyeungw
Helper II
Helper II

I figured it out. I created a calculateld column and filter it = 1.

6 Months = var _maxdate = MAX(DSTrends[Year Month])
return

IF(DATEDIFF(DSTrends[Year Month],_maxdate,MONTH) in GENERATESERIES(-5,5,1),1,0)

ribisht17
Super User
Super User

hi @danyeungw ,

 

You can use an additional column like https://community.powerbi.com/t5/Desktop/Relative-Date-Does-not-Work-with-quot-Show-Items-Without-Da...  to customize it the way you want, in this example you can see how it has been filtered for last 24 months

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.