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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.