Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
AlmarBiter
New Member

Power Query Table.UnpivotColumns Expression.Error

Hi Guys,

 

Need your help. I was encountering an error when using the Table.UnpivotColumns.

AlmarBiter_0-1745066818903.png

 

Advance Editor

AlmarBiter_1-1745067142189.png

 

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

AlmarBiter_2-1745067573734.png


Appreciate your any feedback. Thank you

3 ACCEPTED SOLUTIONS
SundarRaj
Super User
Super User

Hi @AlmarBiter , The error says it is a formula error: Use Table.Unpivot() or Table.UnpivotOtherColumns() as per your need. Thanks!

Sundar Rajagopalan

View solution in original post

krishnakanth240
Resident Rockstar
Resident Rockstar

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

View solution in original post

ronrsnfld
Super User
Super User

There is no function named Table.UnpivotColumns. Hence, your error.

View solution in original post

5 REPLIES 5
AlmarBiter
New Member

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.

ronrsnfld
Super User
Super User

There is no function named Table.UnpivotColumns. Hence, your error.

krishnakanth240
Resident Rockstar
Resident Rockstar

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

SundarRaj
Super User
Super User

Hi @AlmarBiter , The error says it is a formula error: Use Table.Unpivot() or Table.UnpivotOtherColumns() as per your need. Thanks!

Sundar Rajagopalan

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors