Forum Discussion
Sowmiya
7 years agoHelper III
DAX
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] )
themistoklis
7 years agoCommunity Champion
Try this measure:
Measure = CALCULATE((SUM('Table'[Count]) - SUM('Table'[Target])), FILTER(ALLEXCEPT('Table', 'Table'[ID]), 'Table'[Count] < 'Table'[Target]))