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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Show ranking from company versus peer with card

Hello All, 

 

I am trying to recreate the following screen shot from excel to PowerBI.

aschade_1-1644920044698.png with number in black the target KPIs number and number in red the peer group by size. 

For now I have managed to show  the following: 

aschade_3-1644920597399.png

 

Where I am showing value from the Target on the left and on the right with the following measures within a card: 

ROUNDUP(Data_Company[KPI (Median|Company)],4)*100&&IF(Data_Company[KPI (Median|Company)] > Data_Benchmark[KPI (Median|Benchmark)],"▲","▼"). 
 
I am having trouble to created the ranking part showing "3/29" from the screenshot above.
 I have tried using the RANKX function with to be showed in a card with the following but did no succeed to find any solution as I am not sure what metric I should create to fit into the RANKX function (e.g. summing all the KPIS would make little sense):
Ranking KPI = RANKX (CROSSJOIN( ALL(Data_Company[Company]),ALL(Data_Company[Year]),ALL(Data_Company[Size])),MEASURE TBD,,DESC)
 
Below an example of a table I am using as a source. Please note there are several KPIs in the same table, should I seperate them?

 

aschade_0-1644919900276.png

Any help for helping put any colors in my little arrows and to which steps I need to take to create the ranking would be appreciated.

 

Many thanks

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You rank measure should be like

 

Ranking KPI = RANKX ( ALL(Data_Company[Company],Data_Company[Year],Data_Company[Size]),[MEASURE TBD],,DESC)

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

Hi Amit, 

 

Sorry if I was not clear but the MEASURE TBD is actually the part where I struggle, as I am not sure what I need to put here. 

 

Please find an example of how my data looks like. I want that the card change automatically between KPI 1 and 2 depending on a filter (I managed to do all that already with a SWITCH TRUE nested function). Ideally I would like to not create an additional column for each KPI in the table as I have +40 KPIs I would like to show in the dashboard, hence why I want to work with metrics. 

 

NameKPI 1 - GP as % of RevenueKPI 2 - GPas % of Ski sales SizeYear
A70%65%EUR >50m2020
B56%51%EUR 20-50m2020
C68%63%EUR< 20m2020
D63%58%EUR >50m2020
E62%57%EUR 20-50m2020
A68%63%EUR >50m2019
B54%49%EUR 20-50m2019
C66%61%EUR< 20m2019
D61%56%EUR >50m2019
E60%55%EUR 20-50m2019

 

Many thanks for your help

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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