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
DebbieE
Community Champion
Community Champion

Measure to show chosen slicer Or drill through on a map. Measure only shows Filter not map selection

I have a slicer on Region.

 

And a card to show what I have selected on distric which works via a measure

 

Region For Card =
IF (
ISFILTERED ( 'dim Location'[Region] ),
MAX ( 'dim Location'[Region] ),
"No Region Selected"
)
 
So if no region is selected it says No Region Selected and if you select a region it shows here.
 
However under this card I also have a map. It contains region and you can drill through to postocde.
With No Region set in the slicer I can select a region on the map e.g. West Yorkshire but because its done via the map and not the slicer the Card still shows No Region Selected.
 
Obviously I The measure is about filtering. Is there anyway I can change the measure to allow it to show results from the slicer OR the Map selection?
1 ACCEPTED SOLUTION
calerof
Impactful Individual
Impactful Individual

Try this:

 

Region(Map) for card = SELECTEDVALUE( 'dim location'[Region], "No Region Selected" )

 

View solution in original post

4 REPLIES 4
DebbieE
Community Champion
Community Champion

Very odd, it doesnt appear to be working. 

 

Region(Map) for card =
IF(SELECTEDVALUE('dim location'[Region]),
MAX('dim location'[Region]),
"Region")
 
It all fine when Ive not clicked on a region on the map but when I click on a region it still just says region
calerof
Impactful Individual
Impactful Individual

Try this:

 

Region(Map) for card = SELECTEDVALUE( 'dim location'[Region], "No Region Selected" )

 

DebbieE
Community Champion
Community Champion

Yey it worked. Thank you all

calerof
Impactful Individual
Impactful Individual

Hi @DebbieE 

 

Try to use SELECTEDVALUE instead in your function.

 

https://docs.microsoft.com/en-us/dax/selectedvalue-function

 

Regards,

 

Fernando

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.