Forum Discussion
How to calculate difference between two columns - related column and count column
Are you sure you are checking the result in the data view?
2 - 2 = 6 sounds like having the visualization with a value of SUM of calculatedColumn.
Can you show a picture with the two columns and the substract result from the DataView?
The one column was a quick measure and doesn't show up in the data view.
- ibarrau7 years ago
Super User
Then don't use a "quick measure" and create a "calculated column" with the substract.
- Anonymous7 years agoNot applicable
I've been trying. I get a lot of errors.
- Anonymous7 years agoNot applicable
I think this is what i'm trying to do - but have no idea - this DAX stuff is crazy.
I basically want a count of all the during roles for shift b that gets subtracted from the # of required roles for shift b.
CALCULATE(
COUNTA('Contact Export PowerBI'[During Section and Role]),
'Contact Export PowerBI'[During Shift] IN { "B Shift" } - 'Contact Export PowerBI'[RequiredShiftB])