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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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