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! Learn more

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
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.

Top Solution Authors