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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
penelopevit
New Member

I want to create a column that returns '1' if it exists in the data record, and '0' if does not

Well, 

 

If there is a "sale date" recorded for each Lead, I want the value '1' to be returned. If the sales date record does not exist, I want the value '0' to be returned.

I tried it with the following function:


Negócio Fechado =

IF(
ISBLANK('hs_date_entered_13864390')
"1";
"0"
)

 

...but it's does not work. Well, maybe it's because of the "if" doesn't accept 'date'?

 

Are there any date functions I could use to check if the date stamp exists and return "1" to me? Help me!!!!!!!!!!!!

 

 

 

1 REPLY 1
Anonymous
Not applicable

https://dax.guide/isblank

 

And please use correct data types for whatever you do. "1" is a string, not a number. 

 

And here's an excerpt from the above dax.guide with some very important and relavant to your case information:

daxer_0-1630518695653.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.