Forum Discussion
homboy27
7 years agoHelper III
Difference column in a matrix
| Client | Hours | Revenue |
| X | 123 | 20000 |
| Y | 100 | 10000 |
| 23 | 10000 | |
I created the above table in PowerBI. How do i create the 3rd column that subtracts client x from y?
homboy27 the solution I proposed should work, doesn't matter number of records. Pbix is attached for your reference.
11 Replies
- homboy27Helper III
I created the first 2 columns and would like to create the 3rd column that subracts the first 2 columns
- Ashish_MathurSuper User
Hi,
Assuming Hours and Revenue are measures, try this measure
=[Revenue]-CALCULATE([Revenue],Data[Client]="Client X")
Hope this helps.
- homboy27Helper III
That didnt work. Also hours and revenues are not measures.
- Ashish_MathurSuper User
Hi,
Share the link from where i can download your PBI file. Also show the expected result.