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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AvPowerBI
Post Patron
Post Patron

Card Visualization - Do not show (Blank)

Hi,

 

I am using the Card Visulization and one of the fields that I am putting on the field section is called End Date ( I am selecting the Earliest )

 

AvPowerBI_0-1642197851233.png

This End Date does have some dates for some people when I filter on their name but when I select a person that has their End Date as blank it shows it on the Card as the below

 

AvPowerBI_1-1642198194581.png

 

How do I make it just showing nothing i.e. no text just a White Box

 

 

Thanks

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

If you are talking about selecting a slicer, you want your measurement to come back blank when the row is empty, then do not do it if the condition because you are going to find it blank or you need to add a SELECTED VALUE to your measure.
Example:

aj1973_0-1642202695421.png


Can you share a sample? it would be easier to understand this way

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

5 REPLIES 5
aj1973
Community Champion
Community Champion

Hi @AvPowerBI 

Just white box, no not possible...but you can replace the Blank by some term of your choice, you will need to add a DAX measure using IF condition to the calculation.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I created a New Column with the below IF Statement 

 

End Date 2 =
IF(
ISBLANK('Fact'[End Date])," ",'Fact'[End Date]
)
 
But it is coming back wit han error message of the following:
 
AvPowerBI_0-1642199676496.png

 

 

Thanks

aj1973
Community Champion
Community Champion

No,

You need to add a measure not a calculated column, using Min(date) or EARLIER, EARLIEST...

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I have created a measure instead (though the field I am using is a Date field?)

 

End Date 2 =
IF(
ISBLANK(MIN('Fact'[End Date]))," ",MIN('Fact'[End Date])
)
 
This is the result it is showing for the Card visual when using this new Measure End Date 2
 
AvPowerBI_0-1642201444745.png

 

Has it something to do with my DAX or not possible with Date Types

 

aj1973
Community Champion
Community Champion

If you are talking about selecting a slicer, you want your measurement to come back blank when the row is empty, then do not do it if the condition because you are going to find it blank or you need to add a SELECTED VALUE to your measure.
Example:

aj1973_0-1642202695421.png


Can you share a sample? it would be easier to understand this way

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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