Forum Discussion
Error in PQ - Expression.SyntaxError: Token ')' expected
- 1 year ago
Table.TransformColumns(#"Grouped Rows",{"First Transaction Month", Date.StartOfMonth,Date.Type})
or
Table.TransformColumns(#"Grouped Rows",{{"First Transaction Month", Date.StartOfMonth,Date.Type}})
For a single conversion, you can use either {} or {{}}
- 1 year ago
Hi, it is all about the second argument, you should provide it in a list. IF you are going to transform values on a column, you just need to use one List sign, but to change the values on more than a column, you have to provided a list including one sub list for each column, so revise your formula to=>
Transform a column = Table.TransformColumns(#"Grouped Rows",{"First Transaction Month",Date.StartOfMonth,Date.Type})
Transform two column= Table.TransformColumns(#"Grouped Rows",{{"First Transaction Month",Date.StartOfMonth,Date.Type},{"Name column 2}, each _+1})
Hi username100,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like you are facing an issue with syntax when you are creating a new custom column. As Omid_Motamedise ZhangKun and Anonymous provided you with solutions from their side, Please do Mark them as solution if it solves your problem.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team.
If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.