The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have a table similar to this
Staff Name | Signature Deficiency | Document Deficiency | photo deficiency | payment deficiency |
John | 2 | 0 | 5 | 2 |
Ronald | 0 | 2 | 3 | 4 |
Tolkien | 5 | 1 | 2 | 0 |
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!
Solved! Go to Solution.
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.
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"
)
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.
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
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |