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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.