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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.