Forum Discussion
Measure that References other Measure based on a conditional Column
- 1 year ago
So CC1 is a calculated column that will appear in the visual and the other items listed are all existing measures?
CC2 =
Switch(
SelectedValue(table[CC1])
,-1, 0,0, [Total Solar]
,1, [Total Cons]
,2, [BP 1] - [Nursery]
,3, [Art Design] - [MFL & Humanities and Thornton]
,4,[Main School] - [Art & Design]
)
Your solution is worked perfect SamWiseOwl
Hi, JamesBurke
I've created this example data:
I have a cc1 conditional column:
Then use the SamWiseOwl measure:
CC2 = SWITCH(TRUE(),
SELECTEDVALUE('Table'[CC1]) = -1,0,
SELECTEDVALUE('Table'[CC1]) = 0,[Measure1],
SELECTEDVALUE('Table'[CC1]) = 1,[Measure2],
SELECTEDVALUE('Table'[CC1]) = 2,[Measure3]
)
It works flawlessly:
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.