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

We'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

Reply
MikeBennett
New Member

Table.AddRankColumn not recognized

Hi

 

I am relatively new to the Power Query M Language. I am trying to use Table.AddRankColumn in the advanced editor and am getting an error. I am using Power BI Desktop September 2021.

 

As an example I try 

----------------------------------------------

let
tblTest = Table.AddRankColumn(
  Table.FromRecords({
    [CustomerID = 1, Name = "Bob", Revenue = 200],
    [CustomerID = 2, Name = "Jim", Revenue = 100],
    [CustomerID = 3, Name = "Paul", Revenue = 200],
    [CustomerID = 4, Name = "Ringo", Revenue = 50]
  }),
  "RevenueRank",
  {"Revenue", Order.Descending},
  [RankKind = RankKind.Competition]
)
in
tblTest

----------------------------------------------

 

I get the error "Expression.Error: The name 'Table.AddRankColumn' wasn't recognized. Make sure it's spelled correctly."

 

When I am writing the code the editor doesn't try to autofill Table.AddRankColumn like it does for other expressions. 

 

Does anybody have any ideas why I can't use the table expression?

 

Thanks Mike

 

 

 

 

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

Table.AddRankColumn didn't exist in Sept 2021. You should be on a current version, at least April 2022 or later. June 2022 is already out. 

This is a very new function. Not sure exactly when it came out, but Excel doesn't support it yet in Power Query - unless you are perhaps on Insider builds.

 

By the way, once you get to a current version, stay reasonably up to date. MS stops supporting old versions and they never fix bugs in old versions. June 2022 is out, and it doesn't matter if they find a HUGE bug in the May 2022 version. The fix is, install the June version.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Community Champion
Community Champion

Table.AddRankColumn didn't exist in Sept 2021. You should be on a current version, at least April 2022 or later. June 2022 is already out. 

This is a very new function. Not sure exactly when it came out, but Excel doesn't support it yet in Power Query - unless you are perhaps on Insider builds.

 

By the way, once you get to a current version, stay reasonably up to date. MS stops supporting old versions and they never fix bugs in old versions. June 2022 is out, and it doesn't matter if they find a HUGE bug in the May 2022 version. The fix is, install the June version.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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