Forum Discussion
Showing Ranks and their values in cards
- 3 years ago
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"
)
Hi y5famfnatudu
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