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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.