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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

List of Slicer values with optional text value

Hi all!

please help with the following,

 

I have a Geo slicer with list of regions, for the sake of this example let's use continets:

  • Asia
  • Africa
  • Europe
  • North America
  • South America
  • Australia/Oceania
  • Antarctica

I created a Dynamic Text Box which returns selected values from a slicer, 
e.g.
if Europe is selected it returns => Europe ,
Ali_Shakh_0-1672054394313.png
if Asia and Europe is selected it returns => Asia and Europe,

Ali_Shakh_1-1672054444641.png


if 3 or more continets are selected it returns => Asia and Europe, etc.

Ali_Shakh_2-1672054480535.png

if all continets are selected (or none is selected) it returns => All.

Ali_Shakh_3-1672054664522.png

 

 

the only thing I can't figure out is how to return "all but one" when one continet is deselected
e.g. => "all but Europe" when all continents except Europe is selected or other scenarios.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,  Try a measure like 

Add other conditions

 

Switch( True() ,

countx(all(Table[Regions]), [Regions]) -1= countx(allselected(Table[Regions]), [Regions]) , "all but" & maxx(except(all(Table[Regions]), allselected(Table[Regions])), [Region]) ,

// add other conditions

)

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,  Try a measure like 

Add other conditions

 

Switch( True() ,

countx(all(Table[Regions]), [Regions]) -1= countx(allselected(Table[Regions]), [Regions]) , "all but" & maxx(except(all(Table[Regions]), allselected(Table[Regions])), [Region]) ,

// add other conditions

)

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

hi @amitchandak ,

 

you are indeed a Super User, 

 

all works, increadible, thanks a lot!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.