Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anaxielia_1
New Member

Card with top 3 values for a row

Hi,

 

I have a table similar to this

 

Staff NameSignature DeficiencyDocument Deficiencyphoto deficiencypayment deficiency
John2052
Ronald0234
Tolkien5120

 

I have a slicer in the page that filters staff name. I would like to create a card/info table to show top 3 deficiency areas of selected staff.

 

For example,

 

if John selected,

 

5 Photo deficiency

2 Payment deficiency

2 Signature deficiency

 

Thanks in advance and Happy 2024 everyone!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anaxielia_1 
It would be much easier if you unpivot the table as per attached screenshots. Please refer to attached sample file for more details.

1.png2.png3.png

Card = 
IF ( 
    HASONEVALUE ( 'Table'[Staff Name] ),
    CONCATENATEX ( 
        TOPN ( 
            3,
            'Table',
            'Table'[Value]
        ),
        'Table'[Value] & " " & 'Table'[Attribute],
        UNICHAR ( 10 ),
        'Table'[Value],
        DESC
    ),
    "Select staff to see deficiencies"
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Anaxielia_1 
It would be much easier if you unpivot the table as per attached screenshots. Please refer to attached sample file for more details.

1.png2.png3.png

Card = 
IF ( 
    HASONEVALUE ( 'Table'[Staff Name] ),
    CONCATENATEX ( 
        TOPN ( 
            3,
            'Table',
            'Table'[Value]
        ),
        'Table'[Value] & " " & 'Table'[Attribute],
        UNICHAR ( 10 ),
        'Table'[Value],
        DESC
    ),
    "Select staff to see deficiencies"
)

Thank you very much. Works like charm and as needed.

 

Cheers

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.