Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 1200 and can use SELECTEDVALUE function in power bi dax query. But after deploy the model to sql server in the server which has supported compatibility level 1103 and get data in live connection mode couldn't see SELECTEDVALUE. So is it there a way to fix this situation? Thanks for any help.
Solved! Go to Solution.
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" )
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" )
Thanks so much for helping.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |