Forum Discussion
Sowmiya
Helper III
7 years agoDAX
Hi Community, Help me with the DAX to Display Total in Card. Id and Count, Eliminate are Raw Data. Target is dynamic user input. Difference is Count-Target (Obtained by DAX) Negative Diff...
- Anonymous7 years ago
Ok! Try this:
Negative Value = SUMX ( SUMMARIZECOLUMNS ( 'Table'[ID], "Diff", [Difference], "Negative Difference", IF ( [Difference] < 0, ABS ( [Difference] ), 0 ) ), [Negative Difference] )
Sowmiya
Helper III
7 years agoHi Anonymous,
In Screenshot, It is a table Visual.
Count is obtained by count of each ID. ID 35 has occured 254 times , ID 36 - 290 times. In my case, Negative Difference DAX cannot be added as Column. It must be added as measure. How can I visualize the Total of Negative Difference in Card visual using DAX in measure?
Anonymous
7 years agoNot applicable
Ok! Try this:
Negative Value =
SUMX (
SUMMARIZECOLUMNS (
'Table'[ID],
"Diff", [Difference],
"Negative Difference", IF ( [Difference] < 0, ABS ( [Difference] ), 0 )
),
[Negative Difference]
)