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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Anonymous
Not applicable

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

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
Anonymous
Not applicable

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. 

 

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

Anonymous
Not applicable

Replace Blank with Client Information.

 

card = IF(ISFILTERED([Sales Person]) ,FIRSTNONBLANK([Sales Person], [Sales Person]),"Client Information")
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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