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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sanskruti
Helper II
Helper II

DAX for rolling year

Hello,
I have a report in that i have a dim table of date and others are fact table. My requirement is i want to write a dax in which date filter has current date values should be -1 year and the month. I want to do this in date range.
For example:
If the selected date is 22/8/2023 the values should be shown from 1/8/2022.

 

Thank you in advance.

2 REPLIES 2
ThxAlot
Super User
Super User

Why don't you use year-month as slicer?



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Thanks for replying.

I want to use it on page level. And it should be default. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.