Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I created a Switch(True() measure and then used it within a table but it's not displaying the correct values in the total column
I believe it may be using the context of the Switch(True() measure within the Total column.
Switch = SWITCH(TRUE(),
[Margin Measure] >= 100, 1000,
[Margin Measure] >= 80, 500)
In the example above, I want the Switch columns total to be 5,000 rather than 1000
https://www.dropbox.com/s/yl5ypb8tz8asim7/help%20-%20Copy.pbix?dl=0
Thanks,
Mike
Solved! Go to Solution.
Hi @michael_knight ,
In your sample data you could use ISINSCOPE() function to create a new measure as below.
Measure = IF(ISINSCOPE(Sheet1[Agent]),[Total],SUMX('Date',[Total]))
Best Regards,
Jay
Hi @michael_knight ,
In your sample data you could use ISINSCOPE() function to create a new measure as below.
Measure = IF(ISINSCOPE(Sheet1[Agent]),[Total],SUMX('Date',[Total]))
Best Regards,
Jay
here is a workaround for you
Proud to be a Super User!
Thanks, won't be able to apply that to my main dataset. Do you have any alternatives?
User | Count |
---|---|
98 | |
89 | |
82 | |
70 | |
67 |
User | Count |
---|---|
115 | |
104 | |
101 | |
72 | |
64 |