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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mateus_luzzi
Helper I
Helper I

Display only the lowest value in a map with 2 or more categories

Hello!

 

I'm trying to display into a map only the lowest values and its category for that location

The problem happens when I have 2 or more different items for that same location, then PBI brings me both lowest values, as the image below

ajuda microsoft.PNG

 

For example, the biggest mark (in the center) has both minimun values: minimum for item 1 and minimum for item 2, but those values are different, item 2 is slightly lower...

 

I'd like to show only the lowest, in this case, item 2, for that location (edit: and the product name that has that price too, not only the minimun price)

 

I'm using lat/lon for location, a measure ( MIN(Sales[Price]) ) for the size of the mark, and the item name (column) in the legend. 

 

I tried to create a measure, but then I realized it cant be used as a legend so I didnt even tried harder creating a measure 

 

Does somebody can help me? 

 

Thank you!

4 REPLIES 4
parry2k
Super User
Super User

@mateus_luzzi for that you need to write a measure to get the item that has a minimum value and then uses that measure in the tooltip.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

There is no way to do that using the legend? I'd like to use colours to make easier to users to read.... Anyway, thanks! I'll try to create this measure

parry2k
Super User
Super User

@mateus_luzzi why you are using item name on legend, it is giving minimum value for each item, if don't want it minimum by item, remove the item from the legend.

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hello @parry2k 

Sorry, I was not clear enough. I need the lowest price, yes, but I also need its product name (the match: lowest price and the item that has this lowest price on that location)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.