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.
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.
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)
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |