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.

Shape map does not filter context for conditional title

When using a conditional title on a shape map, the default "highlight" filter feature prevents conditional formatting to be applied.

 

Example:

Shape Map has 'Country' as 'location'.

 

A conditional title could be:

IF( HASONEVALUE(Countries[Country]), "Selected country: " & VALUES(Countries[Country]), "All countries")

When no country is selected, the title will be "All countries".

However when selecting a country, the title does not change.

 

This appears to be caused by the fact that this visual uses 'highlight' filtering which apparently does not impact the filter context within the visual.

 

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @wodraeve

 

What you got is expected. In your scenario, the measure uses HASONEVALUE() function which returns TRUE when the context for columnName has been filtered down to one distinct value only. The measure will return false part value if no filter applied to Countries[Country]. So you need to ensure the visual which has Countries[Country] selected can filter the shape map visual. 

 

Best Regards,
Qiuyun Yu