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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
dirkkoch
Helper III
Helper III

Conditional formatting with measure for font color (date column value blank and not blank)

Hi, 

 

I have a calculated date column (column name: hexcode) and I want to create a measure which sets the hex code to a data card visual to font color white (#ffffff) if it is blank and to font color yellow (#f8f32b) it there is a date shown in the column. 

 

So far I tried to following measure but it does not return a white font color, although the date column is empty/blank:

calculate(if(sum('table1'[hexcode].[Date])=BLANK(),"#ffffff", "#f8f32b"))

dirkkoch_0-1668759721074.png

I would be thankful for any support!

 

2 ACCEPTED SOLUTIONS
Uspace87
Resolver III
Resolver III

Hi,

 

What I would do is to create a calculated column that return the colour:

 

Date Formatted = IF(Date_Table[Date]=BLANK(),"#ffffff", "#f8f32b")
 
Then in the "Callout Value section" of your Card you can set to change the colour based on the Calculated column you have created:
 
Uspace87_0-1668761390616.png

 

View solution in original post

@Uspace87  That seems to do the job. Thanks!

View solution in original post

2 REPLIES 2
Uspace87
Resolver III
Resolver III

Hi,

 

What I would do is to create a calculated column that return the colour:

 

Date Formatted = IF(Date_Table[Date]=BLANK(),"#ffffff", "#f8f32b")
 
Then in the "Callout Value section" of your Card you can set to change the colour based on the Calculated column you have created:
 
Uspace87_0-1668761390616.png

 

@Uspace87  That seems to do the job. Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.