Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 %?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
103 | |
101 | |
76 | |
66 | |
60 |
User | Count |
---|---|
142 | |
106 | |
103 | |
85 | |
70 |