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
Russ99
Helper I
Helper I

token rightparen expected

Dear community,

I am tring to create a conditional colum that checks if a transaction date (column already in my model) falls between 01/07/2021 and 30/06/2022 then the new column will output FY 21-22 otherwise output FY YY-YY depending on where the date falls but i have been given the error highlighted

Russ99_0-1642776985905.png

 

any help is greatly appreciated 

 

1 ACCEPTED SOLUTION
bcdobbs
Super User
Super User

Power query doesn't want the brackets after the if

 

You have if ( stuff )

 

Replace with if condition then stuff else stuff no brackets 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

1 REPLY 1
bcdobbs
Super User
Super User

Power query doesn't want the brackets after the if

 

You have if ( stuff )

 

Replace with if condition then stuff else stuff no brackets 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

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.