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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Sean
Community Champion
Community Champion


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

Can you explain again what results you are trying to get?

The results in the last column in the sample above???

What is the difference between the 3rd column calculated by your Price Measure and the results you want in the last?

Am I missing something?

Hi Sean,

 

I have added calculate to get the difference of Price and Price Previous Quarter. I removed the calculate in Var and try to dervie the difference and i am getting the same results. 

 

Please let me know if you need any further information. Also, Help me out in getting the sum of difference in price

 

Thank you!!

 

 

Hi Sean,

 

Thanks for responding. 

 

I have provided different example, so that i will be more clear.  Now, I wanted to derive a new measure to calculate the sum of difference in Price ( as shown in below column 6). We wanted to derive the sum of difference in price to show the savings per quarter. 

 

I got struck at deriving the sum of difference field, I would appreciate any suggestion on acheiving the same. 

 

Thank you!!

 

Measures

1.  Price = CALCULATE(SUM(Price_Table[price])) 

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

3. Difference in Price =  var price_comparison = CALCULATE([Price Previous Quarter] - [Price])
                                        return if(ISBLANK([Price Previous Quarter]),0, price_comparison)

 

 

YearQuarterPricePrice Previous QuarterDifference in PriceSum of Difference
2018Qtr 12630.9 00
2018Qtr 22630.92630.900
2018Qtr 32630.92630.900
2018Qtr 42600.92630.93030
2019Qtr 12564.652600.936.2566.25
2019Qtr 22475.92564.6588.75155
2019Qtr 32067.152475.9408.75563.75
2019Qtr 42044.652067.1522.5586.25
2020Qtr 11727.152044.65317.5903.75
2020Qtr 21404.651727.15322.51226.25
2020Qtr 3945.91404.65458.751685
2020Qtr 4859.65945.986.251771.25
2021Qtr 139.65859.658202591.25
2021Qtr 224.6539.65152606.25
2021Qtr 3024.6524.652630.9
2021Qtr 40002630.9
2022Qtr 10002630.9
2022Qtr 20002630.9
2022Qtr 30002630.9
2022Qtr 40002630.9

Hi,

 

Could you share the link from where i can download your PBI file.


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

Hi Asish,

 

Can you share your email ID, so that i will add to my drop box and share the link.

 

Also, Please let me know if you have any other option to share the PBIX file

 

Thank you!!

Hi,

 

Upload your file to Google Drive/OneDrive and share the download link here.


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

Hi Ashish,

 

Please find the below link to download the PBIX files

 

https://drive.google.com/file/d/1yIz_Pf9nWxvWFy2JSZTyZxyg9T6QmZEp/view?usp=sharing

 

Also, let me know if you need any further information

 

 

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/

Hi Ashish,

 

It worked for me. Thanks a lot. I appreciate your help.

 

Thank you!!

You are welcome.


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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors