• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

How To Effectively Dense Rank Groups & Groups based on Location in a table-using powerquery|Power Query|Excel Forum|My Online Training Hub

You are here: Home / How To Effectively Dense Rank Groups & Groups based on Location in a table-using powerquery|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryHow To Effectively Dense Rank Group…
sp_PrintTopic sp_TopicIcon
How To Effectively Dense Rank Groups & Groups based on Location in a table-using powerquery
Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 21
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
1
September 13, 2022 - 6:45 pm
sp_Permalink sp_Print sp_EditHistory

Good All,  I have Dataset of student records.

Dataset 1 is saved as Book1.xls

Dataset 2 is saved as Book2.xls

Dataset 1  , saved as Book1.xls has records of students whose classes represent their various groups of learning formation.The students are graded and their Total score is stored in a Column named "Total".

Ques1: How do i Dense rank the students based on the Total score considering their various classes.Each classes, SS1, SS2 SS3, are different groups of academic formation. If there is a tie, i what to give them same rank based on their classes with no skip.

Dataset 2 is saved as Book2.xls: This workbook has similar structure of book1.xls. Except location was added, to take into consideration various location of students or  Students enrollment location.

Ques2: How do i Dense rank the students based on their Classes and Location as well.  For instance,the student in SS1 was enrolled in Abba, another student in SS1 was enrolled in ZENSCO, others in  FINIDA, How do i rank  them based on their location and classes?

N.B: i am aware there is a new function for ranking, called:Table.AddRankColumn, buh it is not yet available for some excel version.How can one  effectively use a custom function to handle this challenge.

Thank you.

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 442
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
September 13, 2022 - 7:19 pm
sp_Permalink sp_Print

Perhaps the link below helps you to get started with Dense Ranking in PQ.

https://www.myonlinetraininghu.....ower-query

Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 21
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
3
September 13, 2022 - 9:44 pm
sp_Permalink sp_Print sp_EditHistory

@Riny van Eekelen, thank you. i have seen the article on this platform, buh it doesnt meet my need. The location, i posted wasnt addressed.It involves splitting my large tables , already my queries logs as gotten  merge and splitting of  tables already,in previous steps.I was seeking for moderate function to handle this task and save powerquery memory.More so, these data are data coming from the web. 

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 442
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
4
September 13, 2022 - 11:01 pm
sp_Permalink sp_Print

Can you upload a file with some anonymized data that resembles your real data and indicate how you would dense-rank it manually?

Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 21
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
5
September 15, 2022 - 6:44 pm
sp_Permalink sp_Print sp_EditHistory

@Riny Van, thank you.  I discover that one can switch to "DAX OPTION" to resolve this:

 

Modelling --> New Table

New Table =
ADDCOLUMNS (
YourTableName,
"Ranks", RANKX ( YourTableName, YourTableName[Scores ],, DESC, DENSE )
)

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 442
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
6
September 15, 2022 - 6:49 pm
sp_Permalink sp_Print

Great! I'm not into DAX so much myself, so I didn't know.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, Richard West, Wesley Burchnall, Emma Klonowski, Kelly smith
Guest(s) 6
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27291

 

Member Stats:
Guest Posters: 49
Members: 31913
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.