Forum Discussion
bob57
Helper IV
4 years agoDAX Measure to Calculate Difference.
Hello, I need a DAX measure that will produce the column, DiffFromBlue, shown in Table 2. The column must display the difference in the Rating column from Tee Blue. For example, for Pebble Beach fro...
- 4 years ago
Hi bob57 ,
If this is the outcome you wish for...
... then I have a possible solution for you:
DiffFromBlue = VAR _valueBlue = CALCULATE ( MAX ( TeaTable[Rating] ), ALLEXCEPT ( 'TeaTable', 'TeaTable'[CourseName] ), TeaTable[Tee] = "Blue" ) RETURN MAX ( TeaTable[Rating] ) - _valueBlueHope this helps! 🙂
/Tom
https://www.instagram.com/tackytechtom
tackytechtom
Most Valuable Professional
4 years agoHi bob57 ,
If this is the outcome you wish for...
... then I have a possible solution for you:
DiffFromBlue =
VAR _valueBlue =
CALCULATE (
MAX ( TeaTable[Rating] ),
ALLEXCEPT ( 'TeaTable', 'TeaTable'[CourseName] ),
TeaTable[Tee] = "Blue"
)
RETURN
MAX ( TeaTable[Rating] ) - _valueBlue
Hope this helps! 🙂
/Tom
https://www.instagram.com/tackytechtom