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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors