Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
can you please help with creation of a measure, which subtracts a subtotal value of a previous measure from the newly created one in DAX (will be used in power pivot)?
Something like this (I need to create Measure 2):
*Measure one subtotal is an average of the values above)
Thanks a lot,
I.
Solved! Go to Solution.
Hi,
I am not sure I follow, but I guess here you would want to calculate the "Diff vs avg"? The logic is excatly the same in that you can use ALL to calculate the 12.8% value and then it is a simple case of substracting that from SELECTEDVALUE(table[TGT profit]).
E.g.
Proud to be a Super User!
Hi,
Here is one way to do this:
Data:
Measure for average of all:
Measure for selected row value - average:
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi @ValtteriN ,
thanks a lot, in this simplified example this indeed help.
Do you have some suggestion how to do this also in more complicated data set with weighted average?
For example:
Thank you!
I.
Hi,
I am not sure I follow, but I guess here you would want to calculate the "Diff vs avg"? The logic is excatly the same in that you can use ALL to calculate the 12.8% value and then it is a simple case of substracting that from SELECTEDVALUE(table[TGT profit]).
E.g.
Proud to be a Super User!