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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Tob_P
Helper IV
Helper IV

Top Ranked in various metrics

I have a number of current ranking measures which detail top salesperson, top selling region etc which are working well within a clustered column visual.

 

What I would like to do with each metric is display some additional information. So in best selling region, I'd like to display the region name (this is as a tooltip), but probably through concantenation, also display the best selling salesperson in that region and the total sales for that person. I have all these currently as measures along the lines of this...

 

Top Ranked Region =
CALCULATE(SELECTEDVALUE(tblRep_List[Region]),
TOPN(1,ALL(tblRep_List[Region]), [Amount Measure],DESC))
 
...and have tried some concatenation to merge the measures togeher but obviously I'm then displaying the correct highest selling region ,
but not the correct salesperson within that region.
 
Can anyone advise as to the best way to approach this?
 
Thanks
2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your semantic model.

 

RANK function (DAX) - DAX | Microsoft Learn

 

TOPN function (DAX) - DAX | Microsoft Learn

 

CONCATENATEX function (DAX) - DAX | Microsoft Learn

 

Jihwan_Kim_1-1701749571990.png

 

 

Jihwan_Kim_0-1701749558404.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you for replying and I can see that I could probably achieve an element of what I need with your solution, so thank you for that.

 

Here is a link to stripped back sample file

 

https://drive.google.com/file/d/1rCl91ci3u80OuT62kUsQgOt6lCOuxyiL/view?usp=sharing

 

What I would like to see if possible to achieve is utilising some of the measures I have (adpating them of course), to have the tooltip style in the first chart, blending together the best selling salesperson & team by daily sales. Unfortunately I need to keep the existing format of the tooltip as there are a number of other metrics I need to display, that cannot be superceded by the tooltip suggestion you have offered.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors