Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Solved! Go to Solution.
My guess is you want this
Selection of Measure =
SWITCH(SELECTEDVALUE(Attribute_Table[Aggregation]),
"Allocation" , [Allocation Calculation],
"Count" , [Count (Distinct)],
"Weighted Average" , [Weighted Average %],
"Allocation (per million)" , [Allocation per m],
"Percentage Sum" , [Percentage SUM Positive])
Hi, @knowledgegarage ;
You could change it.
Selection of Measure =
SWITCH (
SELECTEDVALUE ( Attribute_Table[Aggregation] ),
"Allocation", [Allocation Calculation],
"Count", [Count (Distinct)],
"Weighted Average", FORMAT ( [Weighted Average %], "0.00%" ),
"Allocation (per million)", [Allocation per m],
"Percentage Sum", [Percentage SUM Positive]
)
Here i test a simple example.
Selection of Measure =
SWITCH(SELECTEDVALUE(Attribute_Table[Aggregation]),
"Count" , [Count (Distinct)],
"Weighted Average" ,FORMAT( [Weighted Average %],"0.00%"))
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
My guess is you want this
Selection of Measure =
SWITCH(SELECTEDVALUE(Attribute_Table[Aggregation]),
"Allocation" , [Allocation Calculation],
"Count" , [Count (Distinct)],
"Weighted Average" , [Weighted Average %],
"Allocation (per million)" , [Allocation per m],
"Percentage Sum" , [Percentage SUM Positive])
Fantastic.
Second question, as some of these are % and the others are numerical is there a way of forcing say 'Count Distinct' to be numerical and 'Percentage Sum' to be %?
User | Count |
---|---|
98 | |
90 | |
83 | |
70 | |
67 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |