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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Olehio
New Member

Need to calculate the dynamics of the purchase price to the previous date

Hello.

Could you please help me with dax.

I need to calculate the dynamics of the purchase price to the previous date.

Olehio_0-1660986871144.png

Above is what i need to get. It may be solved in other view.

How to calculate two these measures?

1) Dynamic to the previous date

2) Dynamic of the last possible date to the first possible date.

I've been trying to do it with EARLIER or PreviousMonth at least, but i got only errors.

Dynamic to prev date % = CALCULATE(MAX('Data'[Purchase_price]),FILTER('Calendar',PREVIOUSMONTH('Calendar'[Date])))
Maybe the model has some problems?
Olehio_1-1660989101957.pngOlehio_2-1660989229178.png

 

 

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

Attached a file with the solution. Here's a screenshot:

daXtreme_0-1661000975820.png

 

Whitewater100
Solution Sage
Solution Sage

Hello:

 

Please find attached report with example answers. https://drive.google.com/file/d/1WkqhrrvOQhmNLNfdh7aWac_4uJ7zJ98v/view?usp=sharing 

 

I only populated a few days in August, but will work over months. I hope this helps!

Whitewater100_0-1660999126358.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.