cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Want Title Card to Not Display Anything If no Data is Selected

Hi everyone,

 

I have a title card set up that displays the selected client name from my dataset. However, if no client is selected, the title card will still show the first client name at the top of my data. I'd like it so the title card doesn't show anything if nothing has been selected; or at least display a more general tag rather than the first client name. 

 

Any tips on how to get that done? Thanks!

2 ACCEPTED SOLUTIONS
paruchuri447
Resolver I
Resolver I

Hi @Anonymous 

 

We can create a measure like below to get the the result as you excepted.

 

card = IF(ISFILTERED([Sales Person]) ,FIRSTNONBLANK([Sales Person], [Sales Person]),BLANK())
 
Below are the screenshots of how i did it. 
Without using Measure.JPG

I haven't selected anything in the slicer so the card visual showing blank value.

 

Once i select the any value in slicer it got changed.

measure.JPG

I hope this works for you. 

 

View solution in original post

Replace Blank with Client Information.

 

card = IF(ISFILTERED([Sales Person]) ,FIRSTNONBLANK([Sales Person], [Sales Person]),"Client Information")

View solution in original post

7 REPLIES 7
paruchuri447
Resolver I
Resolver I

Hi @Anonymous 

 

We can create a measure like below to get the the result as you excepted.

 

card = IF(ISFILTERED([Sales Person]) ,FIRSTNONBLANK([Sales Person], [Sales Person]),BLANK())
 
Below are the screenshots of how i did it. 
Without using Measure.JPG

I haven't selected anything in the slicer so the card visual showing blank value.

 

Once i select the any value in slicer it got changed.

measure.JPG

I hope this works for you. 

 

View solution in original post

Anonymous
Not applicable

I have one more question if you may know the solution. Is there a way to replace the actual word "Blank" to display a general title tag such as "Client Information".

Thanks Again for your help! 🙂 

 

Capture.PNG

Replace Blank with Client Information.

 

card = IF(ISFILTERED([Sales Person]) ,FIRSTNONBLANK([Sales Person], [Sales Person]),"Client Information")

View solution in original post

Anonymous
Not applicable

Yep, that works. Thanks Paruchuri! And thank you for your help as well hthota. 

I hope this measure would help you for this.

 

Card = IF(HASONEFILTER(TableName[ColumnName]),VALUES(TableName[ColumnName]),"")

Anonymous
Not applicable

Yep, exactly what I was looking for, thanks!

hthota
Resolver III
Resolver III

Create the Measure as given below and place it in Card.

Card = IF(HASONEFILTER(TableName[ColumnName]),VALUES(TableName[ColumnName]),"")

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors