Forum Discussion

quijote's avatar
quijote
Frequent Visitor
1 year ago
Solved

Comparing DAX Measure with SELECTEDVALUE()

Sorry, I am still quite new to PowerBI and DAX.   I have created two measures:    1. Localism = SELECTEDVALUE('ISSUE'[RaisedBy], "None")   which returns the user-selected slicer value for [Rai...
  • quijote's avatar
    1 year ago

    Thanks for looking into this.

     

    I think I just fixed it with the following tweak:

     

    Other_Template = CALCULATE(COUNTROWS(ISSUE), ISSUE[RaisedBy] <> SELECTEDVALUE('ISSUE'[RaisedBy], "None"), ISSUE[CountriesImpacted] = "Template")
     
    Although your solutions looks more elegant, to be sure...