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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX Calculated Columns Help

I need help, I am trying to figure out how to write a True/False DAX expression for current inventory. 

Something like this 

 

Current inventory = Ship Date is not blank 

Retail Date is blank 

 

But im not quite sure how to tie those together. 

1 ACCEPTED SOLUTION

hi @Anonymous 

the screenshot suggests you are adding a custom column in Power Query, while the code above is for a calculated column with DAX. 

FreemanZ_0-1674490672074.png

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Its giving me an error code. 

 

I would need the [SHIP DATE] to not be blank though it has to have a date value, the [RETAIL DATE] would be blank for true and not blank for false 

 

1.JPG

hi @Anonymous 

the screenshot suggests you are adding a custom column in Power Query, while the code above is for a calculated column with DAX. 

FreemanZ_0-1674490672074.png

 

FreemanZ
Super User
Super User

hi @Anonymous 

could you elaborate this logic?

Anonymous
Not applicable

Here is a snippet of a few of the columns i have and each row represents 1 unit of our product. 

 

I need a calculated column that will take the ship date and retail date and give me a true/false value 

 

where true would = Not blank or null in [SHIP DATE] and Blank or null in [RETAIL DATE] 

 

False would be = Not blank or null in [SHIP DATE] but blank or null in [RETAIL DATE]

 

SHIP DATEAGERETAIL DATEEXTERIOR DECORINTERIOR DECORONLINE DATE OFFLINE DATE

hi @Anonymous 

try like:

Column =
IF(
[SHIP DATE]<>BLANK()&&[RETAIL DATE]=BLANK(),
"TRUE", "FALSE"
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.