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
riadorra
Helper II
Helper II

Filtering with map visual

Hi,

please can anyone help me?

I need to filter a top 5 rank chart bar by using a map visual (Brazil - States).

My model is simple, it contains:

- a databse with 5 columns: Brazil state, Product code and ammount sold 

- Visual map

- Bar chart with a top 5 filter by ammount sold

 

The issue is that by clicking on a map region, the bar chart dont change the top 5 products, it only highliths the ammount sold that the sell=ected region contains of the products that is already on the chart.

 

Thank you

Riad

 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

You should be able to do this using "Edit Interactions" and set the bar chart to filter.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

5 REPLIES 5
AllisonKennedy
Super User
Super User

You should be able to do this using "Edit Interactions" and set the bar chart to filter.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hi,

i´m sorry, maybe i didn't explain the isse rigth. I'll try to give you an example ...

What is happening is when there is no area selected on the map, the top five produts shows on the bar chart are:

1 - Strawberry (200 produtcs sold)

2- Mango (98 products sold)

3 - Pineaple (70 products sold)

4 - Banana (60 products sold)

5 - apple (50 products sold)

By clicking at Sao Paulo on the map, the bar chart only highlights / change the ammount of the products sold. What i need is that by clicking on Sao Paulo, for example, the chart shows the top 5 products in Sao Paulo, and as a result the chart should shows:

1 - Strawberry (80)

2 - Pienaple (60)

3 - Orange (35)

4 - Apple (30)

5 - Grape (10)

Thank you

Riad

@riadorra - @AllisonKennedy was correct, you need to change the filter behavior to Filter instead of Highlight:

Greg_Deckler_0-1599688494331.png

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler for the photo support - a picture really is worth a 1000 words.

@riadorra here is a link also on the feature we are recommending: https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions

Hopefully that helps clarify how this could fix your query, if still unclear, come back with more questions and detailed info of what happens when you try our suggestion.

Cheers!

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.