Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Solved! Go to Solution.
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,
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,
Hi ,
Hope this helps.
Thank you so much. This helps.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |