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

If conditions gives error

HI ,

@jdbuchanan71

 

I get this error I also tried to put the VALUE function still i get the same error?

Any help?

 

Capture1.PNG

 

with VALUE Function:

 

Capture2.PNG

 

 

Thanks,

Tejaswi

2 ACCEPTED SOLUTIONS
tarunsingla
Solution Sage
Solution Sage

For the formula in your first screenshot (the one without "Value" keywords), change the last "=" on line 4 to a comma and see if that helps.

As a rule of thumb, the data type of the right hand side expression of the comparison equation, should be same as that of the left hand side.

View solution in original post

SteveCampbell
Memorable Member
Memorable Member

First check the numeric column.

In your Fields list, select the column 'Driver Amount' in the 'Discount Driver' table. Go to the Modelling tab and change the data type to a number if it is not already.

 

Annotation 2019-10-10 141656.png

 

 

Then, change your dax so the two date parts are like this :

 

 'Discount Driver'[Payment Date] < ( TODAY() - 5 ) 

Lastly, make sure all individual statements with && are wrapped in ( ). 

So:

(statement 1 = 0 ) && ( statement 2 = 0 ) 

etc

 

 

Appreciate your Kudos
Connect with me!

Stay up to date on  linkedin-logo.png
Read my blogs on  powerbi.tips_.png



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



View solution in original post

3 REPLIES 3
SteveCampbell
Memorable Member
Memorable Member

First check the numeric column.

In your Fields list, select the column 'Driver Amount' in the 'Discount Driver' table. Go to the Modelling tab and change the data type to a number if it is not already.

 

Annotation 2019-10-10 141656.png

 

 

Then, change your dax so the two date parts are like this :

 

 'Discount Driver'[Payment Date] < ( TODAY() - 5 ) 

Lastly, make sure all individual statements with && are wrapped in ( ). 

So:

(statement 1 = 0 ) && ( statement 2 = 0 ) 

etc

 

 

Appreciate your Kudos
Connect with me!

Stay up to date on  linkedin-logo.png
Read my blogs on  powerbi.tips_.png



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Anonymous
Not applicable

Thanks @tarunsingla and @SteveCampbell  for your reply!

 

@SteveCampbell  my Dat type is in Numeric ( decimal format) and it was a silly mistake which @tarunsingla  promted.

 

@tarunsingla  your solutiosn worked!

 

 

Thanks,

Tejaswi

tarunsingla
Solution Sage
Solution Sage

For the formula in your first screenshot (the one without "Value" keywords), change the last "=" on line 4 to a comma and see if that helps.

As a rule of thumb, the data type of the right hand side expression of the comparison equation, should be same as that of the left hand side.

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.