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
Mahathi_125
Frequent Visitor

token right paren expected

if([Column1]>= DATE([#"2ndsundayofmarch - year"],[#"2ndsundayofmarch -Month"],[#"2ndsundayofmarch - date"])&[Column1]<= DATE([#"november1stsundaydate - year"],[#"november1stsundaydate - month"],[#"november1stsundaydate - date"]), "True","False")

 

I am trying to use this if statement but facing the token right paren expected error can anyone help me with this 

1 ACCEPTED SOLUTION
css207
Frequent Visitor

VAR DATE1 = DATE([#"2ndsundayofmarch - year"],[#"2ndsundayofmarch -Month"],[#"2ndsundayofmarch - date"])
VAR DATE2 = DATE([#"november1stsundaydate - year"],[#"november1stsundaydate - month"],[#"november1stsundaydate - date"])
RETURN IF(
[Column1]>= DATE1 && [Column1]<= DATE2,
"True",
"False")

View solution in original post

1 REPLY 1
css207
Frequent Visitor

VAR DATE1 = DATE([#"2ndsundayofmarch - year"],[#"2ndsundayofmarch -Month"],[#"2ndsundayofmarch - date"])
VAR DATE2 = DATE([#"november1stsundaydate - year"],[#"november1stsundaydate - month"],[#"november1stsundaydate - date"])
RETURN IF(
[Column1]>= DATE1 && [Column1]<= DATE2,
"True",
"False")

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors