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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

Create measure for when there is more than one answer

Hi, I'm pretty new to using Power BI and I'm not being able to solve the following issue:

I have a database of cities in countries of the world, I added to my dashboard a card that shows the capital city of the selected country. The problem is, when I'm on "select all", this card shows me the capital of the first country on the list. How do I make it appear blank or show a text of your choice when all the cities are selected?

Thank you!

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi,

In my opinion you could create the below measure :

_NewCapital =
Var _SelectVal = count(Sheet161[Capital])
return if(_SelectVal = 1, values(Sheet161[Capital]), BLANK())
Then use this measure as your card visual :
MahyarTF_0-1662509997927.png

 

Appreciate your Kudos 
Mahyartf

View solution in original post

4 REPLIES 4
MahyarTF
Memorable Member
Memorable Member

Hi,

In my opinion you could create the below measure :

_NewCapital =
Var _SelectVal = count(Sheet161[Capital])
return if(_SelectVal = 1, values(Sheet161[Capital]), BLANK())
Then use this measure as your card visual :
MahyarTF_0-1662509997927.png

 

Appreciate your Kudos 
Mahyartf

It worked thank you very much!!

Thanks for your Kudos,

Would you please mark it as a solution if it helps you ?

Mahyartf

Would you please set it as a solution and Kudos please ?

Mahyartf

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors