Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello,
I hope you can help me here, please.
How can I show Ranks and their values in Cards?
For example, I have the following table:
In this report, I'm ranking only the "US" employees.
How can I show different card visuals per each rank?
For example:
Your help is so much appreciated.
Best regards,
Simon
Solved! Go to Solution.
I meant all measures of each employee are in one card? However please try
Rank1 =
VAR ThisRank = 1
VAR T1 =
ADDCOLUMNS (
VALUES ( 'Table'[Employee] ),
"@Rank", [Rank],
"@Revenue", [Revenue],
"@LY", [LY]
)
VAR T2 =
FILTER ( T1, [@Rank] = ThisRank )
RETURN
CONCATENATEX (
T2,
[Employee] & UNICHAR ( 10 ) & "Rank " & [@Rank]
& UNICHAR ( 10 ) & [@Revenue]
& UNICHAR ( 10 ) & "Revenue"
& UNICHAR ( 10 ) & [@LY]
& UNICHAR ( 10 ) & "LY"
)
assuming [Rank] is a measure and no duplicates in ranking then you may try
Rank1 =
VAR ThisRank = 1
VAR ThisEmplyee =
FILTER ( VALUES ( 'Table'[Employee] ), [Rank] = ThisRank )
RETURN
ThisEmplyee & UNICHAR ( 10 ) & "Rank " & ThisEmplyee
Dear @tamerj1
Thank you so much, but my problem is not getting the name of the employee, rather the other values (i.e. Revenue and LY)
Your help is so much appreciated.
Best regards,
Simon
No, a measure can be created for each, that shouldn't be a problem at all.
I meant all measures of each employee are in one card? However please try
Rank1 =
VAR ThisRank = 1
VAR T1 =
ADDCOLUMNS (
VALUES ( 'Table'[Employee] ),
"@Rank", [Rank],
"@Revenue", [Revenue],
"@LY", [LY]
)
VAR T2 =
FILTER ( T1, [@Rank] = ThisRank )
RETURN
CONCATENATEX (
T2,
[Employee] & UNICHAR ( 10 ) & "Rank " & [@Rank]
& UNICHAR ( 10 ) & [@Revenue]
& UNICHAR ( 10 ) & "Revenue"
& UNICHAR ( 10 ) & [@LY]
& UNICHAR ( 10 ) & "LY"
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
38 | |
21 | |
18 | |
15 |
User | Count |
---|---|
124 | |
39 | |
28 | |
24 | |
23 |