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

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.

Reply
PBI-Curious
Resolver I
Resolver I

Need Dax that will calculate prior year variance including sorting in descending order by PY$

Hello PBIC Forum Good Day!

What I'm trying to accomplish:

Looking for way to show the prior year variance between each grouping ($, Lost$ and Retention), in addtion to having the ability to sort in descending order by PY$

 

Please advise of any questions 

Much appreciate your time!

Thank you

P.S. I have a sample .pbix to share if needed.

 

PBICurious_0-1677003687814.png

PBICurious_1-1677004145936.png

 

PBICurious_2-1677004233739.png

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@PBI-Curious , Consider field parameters or calculation groups 

 

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.