Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I got a table in power bi with the following structure
Name | %C | %A | %T | %U |
Paul | 60% | 56% | 34% | 75%|
How do I get power bi using DAX to read the % and if any % in the | %C | %A | %T | %U | is above 50%, it will capture the alphabet according to the descending value of the %. For example, for Paul, the column next to him should read UCA
Thank you in advance!
Solved! Go to Solution.
Closing the loop here. Manage to find the answer eventually:
Closing the loop here. Manage to find the answer eventually:
Hello @ngiam,
Can you please try this:
UCA Column =
VAR SortedTable =
SORT (
ADDCOLUMNS (
FILTER (
ALL ( Table1 ),
Table1[Name] = SELECTEDVALUE ( Table1[Name] )
),
"Attribute", SWITCH (
TRUE (),
Table1[%C] >= 0.5, "%C",
Table1[%A] >= 0.5, "%A",
Table1[%T] >= 0.5, "%T",
Table1[%U] >= 0.5, "%U"
)
),
[Attribute], DESC
)
RETURN
CONCATENATEX ( SortedTable, SortedTable[Attribute], "" )
Hi @Sahir_Maharaj ,
Thank you for your support. I'm getting this error code: Failed to resolve name 'SORT'. It is not a valid table, variable, or function name.
Is there something that I should do from my end?
Thanks
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!