Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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}
))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 8 | |
| 5 | |
| 5 |