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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
AlanP514
Post Patron
Post Patron

Dynamic PY,CY,NY

Hai Dax pro people's need your help 

I have a table called tracking file it is having projects amounts datarequirement is 

If user 2021 from year slicer they want to 

PY(2020) value ,CY(2021) value,NY(2022) Value 

Please help to achive this

 

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @AlanP514 ,

 

You can refer to this blog. Create PY and NY measures according to the formulas involved:

https://blog.enterprisedna.co/financial-year-dynamic-filtering-in-power-bi-reports/ 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

serpiva64
Solution Sage
Solution Sage

Hi,

it is not clear :

next year is a partial, you want to compare it with complete previous year or with the same partial (ex. till 11/04)?

With the same partial

AlanP514
Post Patron
Post Patron

 


I have a table called tracking file it is having projects amounts datarequirement is 

If user select 2021 from year slicer they want to see

PY(2020) value ,CY(2021) value,NY(2022) Value 

Please help to achive this

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.