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
Anna_Korolyuk
Regular Visitor

Top 10 on a map

Hi!

 

I want to show top 10 items on a map and only them. I created rank measure with the help of RANKX, it works. Now the solution is to add measure filter to the visual filters as for example in here. But it doesn't work, filter is applied and map still shows all items, not only top 10. 

1 ACCEPTED SOLUTION

hi, @Anna_Korolyuk

When I use ArcGis maps, it also works well.

for example:

Top2Top2Top4Top4

 

So if you could share your sample pbix file with us, there should be something wrong in other setting.

 

Best Regards,
Lin

 

 

Community Support Team _ Lin
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

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi, @Anna_Korolyuk

You may try this simple way:

Step1:

Create a Rank measure like this:

Rank = RANKX(ALLSELECTED(Table1),CALCULATE(SUM(Table1[Qty])),,DESC )

Step2:

Darg Rank Measure into visual level filter, and set filter is less than or equa to "XXX"

1.JPG

For example:

In my example, show top 3 result

2.JPG

 

Here is demo pbix file, please try it.

 

If not your case, please share your sample pbix file and expected output. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

 

Best Regards,

Lin

 

 

 

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

Ok, I see my mistake. You use just maps, I used ArcGis maps. For ArcGis it doesn't work, for usual maps it does.

hi, @Anna_Korolyuk

When I use ArcGis maps, it also works well.

for example:

Top2Top2Top4Top4

 

So if you could share your sample pbix file with us, there should be something wrong in other setting.

 

Best Regards,
Lin

 

 

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

While I was preparing map, I noticed that it works for ArcGis too. I must have somewhere wrong address (i have 100 of them) and that's why it doesn't work. Can't publish all addresses, but for small amount of them things work. Thank you, I have seen that I am doing right thing.

hi, @Anna_Korolyuk

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Best Regards,

Lin

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

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.