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
MartinS_CZ
Regular Visitor

Is it possible to apply column formula only for BLANK values at the same column?!?

Hello guys,

 

I have maybe a bit weird questions – is it possible in DAX (or PQ) make a column formula, which is applied only for BLANK cells at the same column

 

I need to compare todays date with other column date, and do it on daily basis then, so first day after this comparison some rows to be filled as TRUE (today = date in other column), and next day it is done again, with "today of next day" date comparison, but NOT to overwrite TRUE values already filled from the day before

And so on, day by day just compare it and fill the rest BLANK cells only, but keep the ones already filled with TRUE from previous days.

Kind of “freezeing” already existing values, and apply the formula only for the blank cells.

 

Something like this (just to understand my thoughts): 

 

DateComparison =
(IF (DateComparison) ISBLANK,
(IF (DateComparison) = (TODAY),
“TRUE”),
else,
””
))

 

Thanks a lot Martin

 

1 REPLY 1
amitchandak
Super User
Super User

@MartinS_CZ , Based on what I got.

 

If you want to replace , then use replace in power Query and replace null  with some value 

 

Power Query Replace Value: https://youtu.be/hkZhZbR7Kmk

 

In dax you can have new column like

 

if(isblank([COlumn]), "A", blank())

 

Keep the data type same( in then and else )  or use blank

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.