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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Super User
Super User

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
Super User
Super User

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.