Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 %?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!