Forum Discussion
Anonymous
6 years agoNot applicable
SELECTEDVALUE function doesn't recognized
Hi to all, I am trying to create a new measure by using a selected value from a slicer. First i created a demo by deploying the model to local sql server which has supported compatibility level 1...
- 6 years ago
you can use the IF + HASONEVALUE combination, as explained here
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/IF ( HASONEVALUE ( Table[column] ), VALUES ( Table[column] ), "default value" )
Stachu
6 years agoCommunity Champion
you can use the IF + HASONEVALUE combination, as explained here
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/
IF ( HASONEVALUE ( Table[column] ), VALUES ( Table[column] ), "default value" )
Anonymous
6 years agoNot applicable
Thanks so much for helping.