Forum Discussion
Subtract two columns
- 4 years ago
Hi, Anonymous
You can try the following methods.
Measure = SELECTEDVALUE(_GroupEarnings[_EarnAmount])-SELECTEDVALUE(_GroupDeductions[_DedAmount])Measure 2 = SUM(_GroupEarnings[_EarnAmount])-SUM(_GroupDeductions[_DedAmount])Both of these measures give the result of subtracting two columns.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more.
Hi Anonymous
Try this.
Let me know if you have any questions.
Total =
var _earn = MAX(Earnings[Earnings])
var _ded = MAX(Deductions[Deductions])
return _earn- _ded
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel
I'm not having success. The new column is showing the same invalid value all the way down.
Perhaps I missed something in the command?
- Nathaniel_C4 years agoCommunity Champion
Hi Anonymous ,
In order to have data from two different tables they have to be linked in some fashion.
Here is one way.
Please tell me, is this for a short term project or something else. Can you share your pbix with me?
If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.
Please read this post to get your question answered more quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Nathaniel