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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 20 | |
| 12 | |
| 12 |