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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
aclifton
Frequent Visitor

Filters with Different Data Types on a Map Visual

Hi all,

 

Is it possible to have a filter only affect certain data types on a map visual? I am creating a map with client sites, technicians, and subcontractors, and I want to be able to filter the client sites by client without having the technician / subcontractor data disappear (They are not related). Any advise would be greatly appreciated. Thank you!

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @aclifton ,

 

Sounds like you need a disconnected table to specifically filter the fields you need.

For example, the Measure returns the sum of the values based on the selctions from the slicer.

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[ID] IN ALLSELECTED('Table 2'[ID])))

The field of the slicer is from the Table 2 created by dax.

vstephenmsft_0-1675759549953.png

vstephenmsft_1-1675759566769.png

Although the IDs are filtered in the slicer, the IDs of the table visual are retained. 

You can also remove ALLSLECTED as follows, which will return the value of the corresponding ID.

Measure 2 = CALCULATE(SUM('Table'[Value]),FILTER('Table',[ID] in ALLSELECTED('Table 2'[ID])))

vstephenmsft_2-1675759799500.png

 

 

                                                                                                                                                        

Best Regards,

Stephen Tao

 

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

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @aclifton ,

 

Sounds like you need a disconnected table to specifically filter the fields you need.

For example, the Measure returns the sum of the values based on the selctions from the slicer.

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[ID] IN ALLSELECTED('Table 2'[ID])))

The field of the slicer is from the Table 2 created by dax.

vstephenmsft_0-1675759549953.png

vstephenmsft_1-1675759566769.png

Although the IDs are filtered in the slicer, the IDs of the table visual are retained. 

You can also remove ALLSLECTED as follows, which will return the value of the corresponding ID.

Measure 2 = CALCULATE(SUM('Table'[Value]),FILTER('Table',[ID] in ALLSELECTED('Table 2'[ID])))

vstephenmsft_2-1675759799500.png

 

 

                                                                                                                                                        

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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