Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am trying to select multiple columns by using column index numbers (instead of names) however below row throws an error ("Expression.SyntaxError: Token '}' expected.")
= Table.ColumnNames(#"Renamed Columns1"){2,3}
I expec from Table.ColumnNames to return names of the columns and select columns function to select only these columns.
= Table.SelectColumns(#"Renamed Columns1", Table.ColumnNames(#"Renamed Columns1"){2,3})
I do not understand why it gives such an error because above rows works pefectly fine with single column index.
Is there any tip or shortcut for that? Thanks.
Solved! Go to Solution.
"I do not understand why it gives such an error because above rows works pefectly fine with single column index" - You can refer to one item of a list by index. For more than one item you need to use List functions e.g. List.Range or List.Combine or something else
"I do not understand why it gives such an error because above rows works pefectly fine with single column index" - You can refer to one item of a list by index. For more than one item you need to use List functions e.g. List.Range or List.Combine or something else
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |