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
manojsv16
Helper II
Helper II

DAX sum of measure of measure

Hello,

 

I need help on how to calculate sum of measure of a meausre

 

I have a table with Price and Date fields. Below is the table which has Year and Quarter as filters

Price is the sum of Price.Price Previous Quarter is sum of price previous Quarter.

Difference in Price is Difference in Price and Previous Quarters.

Now, I wanted to calculate sum of Difference in Price as shown in Sum of Difference field. 

I have been trying to achieve the results using various options like combining all calculation in a single measures, but no sucess yet.

Please help me on how to sum the difference in price. I would appreciate any help/suggestions.

 

Thank you!!

Measures

Price  = SUM(Price)

Price Previous Quarter = CALCULATE([Price], PREVIOUSQUARTER(Date_Table[Date]) )

Difference in Price  = Price Previous Quarter - Price

 

YearQuarterPricePrice Previous QuarterDifference in Price Sum of Differences
2018Q19670967967
2018Q211159671481115
2018Q3143211153171432
2018Q414551432231455
2019Q1186314554081863
2019Q219521863891952
2019Q319881952361988
2019Q420181988302018

 

 

1 ACCEPTED SOLUTION

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

10 REPLIES 10

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.