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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors