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
Anonymous
Not applicable

Getting FORMAT error

Hi All,

 

Need your help in below situation.

 

This is the code:

SL2 = IF(GBS_TD_REP_for_Gangan[Close time]="","Open",IF(GBS_TD_REP_for_Gangan[Hours]<=GBS_TD_REP_for_Gangan[Priority Duration],"Met","Not Met"))

 

In this code, Close time is Date/Time field and Hours and Priority Duration are Whole number fields.

 

When I am typing above code, below is the attached error I am getting:

Error.JPG

I am unable to figure put how to use value or Format function in my code.

 

Kindly assist.

 

Regards

Abhijit Mishra

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous Give a try with this...

 

SL2 = IF(ISBLANK(GBS_TD_REP_for_Gangan[Close time]),"Open",IF(GBS_TD_REP_for_Gangan[Hours]<=GBS_TD_REP_for_Gangan[Priority Duration],"Met","Not Met"))




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

By my tests, both of the solution from petrovnikitamai and pattemmanohar should solve your problem.

 

If you have solved your problem, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
petrovnikitamai
Resolver V
Resolver V

try to use blank() instead ""

PattemManohar
Community Champion
Community Champion

@Anonymous Give a try with this...

 

SL2 = IF(ISBLANK(GBS_TD_REP_for_Gangan[Close time]),"Open",IF(GBS_TD_REP_for_Gangan[Hours]<=GBS_TD_REP_for_Gangan[Priority Duration],"Met","Not Met"))




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Thanks for the solutions @petrovnikitamai @PattemManohar @v-piga-msft

 

Below is the code, which also gave the same result:

SL2 = IF(FORMAT(GBS_TD_REP_for_Gangan[Close time],"dd mm yy")="","Open",IF(GBS_TD_REP_for_Gangan[Hours]<=GBS_TD_REP_for_Gangan[Priority Duration],"Met","Not Met"))

 

Regards

Abhijit Mishra

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.