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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Rank top score per column and who scored

Hi all,

 

New to Power BI so this might be easy but I need help. I have a document which looks something like this:

gg

 

 

 

 

 

 

 

What I would like is grab the top result(s) in each column and present who scored this and in which category they were the top scorer so I can make a nice visual out of it.  I really can't figure it out by myself yet.

 

Any help would be much appreciated

1 ACCEPTED SOLUTION

Hi @Anonymous 

Open edit queries, click on "Factory" and select "unpivot other columns",

Close&&apply,

Create measures

max score = CALCULATE(MAX(Table1[Value]),ALLEXCEPT(Table1,Table1[Attribute]))

flag = IF(SUM(Table1[Value])=[max score],MAX(Table1[factory]))

top scorer = CONCATENATEX(FILTER(ALLEXCEPT(Table1,Table1[Attribute]),[flag]<>BLANK()),[flag],"&")

13.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Please show the exact expected result in a simple Table format.  Once the result in the Table is correct, we can build any visual we want.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi, 

 

Thank you for the quick response.

What I mean is this:Capture2.PNG

 

So I want a score card or something (will play around with what visualization is best) where users easily may see which country/factory performed the best. This way they know who could be good to benchmark.

Hi @Anonymous 

Open edit queries, click on "Factory" and select "unpivot other columns",

Close&&apply,

Create measures

max score = CALCULATE(MAX(Table1[Value]),ALLEXCEPT(Table1,Table1[Attribute]))

flag = IF(SUM(Table1[Value])=[max score],MAX(Table1[factory]))

top scorer = CONCATENATEX(FILTER(ALLEXCEPT(Table1,Table1[Attribute]),[flag]<>BLANK()),[flag],"&")

13.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

 

@v-juanli-msft 

 

Thank you! This is what I was looking for. Much appreciated!

 

Best regards

Maudan

 

Hi,

Refer to my solution here - Determine the top selling location for each product.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

In Edit queries, click on "factory" column and select "unpivot other columns", close&&apply.

Create two measures

the top result(s) in each column = CALCULATE(MAX(Table1[Value]),ALLEXCEPT(Table1,Table1[Attribute]))

who scored top scores = 
IF(MAX(Table1[Value])=[the top result(s) in each column],MAX(Table1[factory]))

4.png

 

"in which category they were the top scorer "->

i  don't understand this, could you show me a example from my test?

 

" make a nice visual out of it"->

What visual do you want?

 

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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