Forum Discussion
Dealing with Measure Totals
Hi,
I'm strugging with the issue where I need to calculate one measure in a two ways based on the values.
The data model is much more complex, however to simplify it let's imagine that I have one column and two measures.If value in column is "D" pick value from second measure, otherwise first measure.
When I use below formula the row by row calulation is good however total is wrong.
I need to present all values in table and I cannot make columns instead of measures. I understand what SELECTEDVALUE is doing however don't know what other formula should I use n that case.
All suggestions are more than welcomed.
Thank you
The result of the Measureif measure is correct. What problem are you facing?
- bob_by5 years agoNew Member
Hello,
the total value is wrong.
bobby
- Ashish_Mathur5 years ago
Super User
Hi,
Try this measure
=SUMX(VALUES(Table[Column1]),[Measureif])
Hope this helps.
- bob_by5 years agoNew Member
Ashish_Mathur you saved my day 😀
Thank you