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
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
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.