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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
powerBI21
Regular Visitor

Card Shows Blank Value in case of Multiple Selection

Hi All

Here is the Scenario:

I have Region and Country Filter on my page and a Card which shows the selected Region or country.

If no selection is made- -> Card shows Blank value which I fixed with COALESCE function ensuring if nothing is selected, the Card shows " No Country Selected".

Code used - 

Selected Country = COALESCE((SELECTEDVALUE(
'Consolidated'[Country])),"No Country Selected")

But if multiple selection is made, card again shows Blank Value.

Please help me fix this as I want in case of multiple selection, card shows Mutiple Countries Selected.

 

Thanks in Advance!!

Happy Learning.

 

 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@powerBI21 ,

I use the SWITCH funtion to do this:

Country_Selected = SWITCH(
                   TRUE(),
   ISFILTERED( 'Consolidated'[Country] ) = FALSE(), "No Country Selected",
   HASONEFILTER( 'Consolidated'[Country] ) = TRUE(), SELECTEDVALUE( 'Consolidated'[Country] ),
   "Multiple Countries Selected" )

Trust this will work for you.

Regards,

View solution in original post

4 REPLIES 4
rsbin
Super User
Super User

@powerBI21 ,

I use the SWITCH funtion to do this:

Country_Selected = SWITCH(
                   TRUE(),
   ISFILTERED( 'Consolidated'[Country] ) = FALSE(), "No Country Selected",
   HASONEFILTER( 'Consolidated'[Country] ) = TRUE(), SELECTEDVALUE( 'Consolidated'[Country] ),
   "Multiple Countries Selected" )

Trust this will work for you.

Regards,

Anuja_Chaudhari_0-1706531423790.png

 

Hi ,

Hope this helps.

Hema_Gupta_0-1707820572830.png

 

Thank you so much. This helps.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.