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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors