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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello All,
I have the following table:
| Brand | Category | March | April | May |
| AB | DOP | 500 | 750 | 807 |
| AC | PDO | 200 | 850 | 890 |
| AD | OOB | 150 | 970 | 750 |
| AA | DOP | 680 | 160 | 690 |
I am trying to create a function that would change the column types of all columns expceted the columns Brand and Category.
(The other column's names will always change. The column "Brand" and "Category" will always be the 2 first columns and their names will never change)
I have tried the following function but doesn't work:
= Table.TransformColumnTypes(#"End stage 3",
List.Transform(
List.RemoveFirstN(
Table.ColumnNames(Source),
2
),
each {_, Int64.Type}
))
I get an error message : "Expression.Error: The column 'Item' of the table wasn't found.
Details:
Item"
but nowhere in my table or transformations I have a column names Item.
Anyone has an idea how I could achieve this?
Solved! Go to Solution.
= Table.TransformColumnTypes(#"End stage 3",
List.Transform(
List.RemoveFirstN(
Table.ColumnNames(#"End stage 3"),
2
),
each {_, Int64.Type}
))
I see you replaced the source with the previous step.
= Table.TransformColumnTypes(#"End stage 3",
List.Transform(
List.RemoveFirstN(
Table.ColumnNames(#"End stage 3"),
2
),
each {_, Int64.Type}
))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 3 |