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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors