This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is now in read-only for platform upgrade. Learn more
Hi Guys,
Need your help. I was encountering an error when using the Table.UnpivotColumns.
Advance Editor
I try to fix it until I came up to try simple code like this and I encounter the same error.
let
Source = #table({"Category", "Value1", "Value2"}, {{"A", 1, 2}, {"B", 3, 4}}),
Unpivoted = Table.UnpivotColumns(Source, {"Value1", "Value2"}, "Attribute", "Value")
in
Unpivoted
Appreciate your any feedback. Thank you
Solved! Go to Solution.
Hi @AlmarBiter , The error says it is a formula error: Use Table.Unpivot() or Table.UnpivotOtherColumns() as per your need. Thanks!
Hi @AlmarBiter ,
Okay, Can you replace with 'Table.UnpivotOtherColumns' instead of Table.UnpivotColumns. This function unpivots all columns except the ones specified, which might work for your case.
Could you please check and confirm? Thank you
There is no function named Table.UnpivotColumns. Hence, your error.
Thanks for your help. My earlier reference included the Table.UnpivotColumns function, but after reviewing the latest Power Query documentation, it appears this function is no longer available.
Hi @AlmarBiter ,
Okay, Can you replace with 'Table.UnpivotOtherColumns' instead of Table.UnpivotColumns. This function unpivots all columns except the ones specified, which might work for your case.
Could you please check and confirm? Thank you
I'm now using the Table.UnpivotOtherColumns and it's working. Thanks for the help
Hi @AlmarBiter , The error says it is a formula error: Use Table.Unpivot() or Table.UnpivotOtherColumns() as per your need. Thanks!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.