Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Everyone,
I am trying to write a measure which changes the column used for calculation based on filter selection.
Example: If the selected filter value is A, measure should calculate using column 1, if selected filter value is B, then the measure should calculate using column 2, if nothing is selected, it should calulate using column 3.
How do I write this measure?
Or I am looking it in a wrong way and need to modify the data model?
Solved! Go to Solution.
You may use SELECTEDVALUE Function inside SWITCH Function to add a measure.
You may use SELECTEDVALUE Function inside SWITCH Function to add a measure.
User | Count |
---|---|
84 | |
80 | |
70 | |
47 | |
43 |
User | Count |
---|---|
109 | |
54 | |
50 | |
40 | |
40 |