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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dw700d
Post Patron
Post Patron

return the first 10 rows of a sorted column

I have a table with 54 employees. The table is sorted by the cogs split column. I would like to find a way to list the first 10 sorted employees in a table. And then list the next ten (11-20) sorted employees in a separate table. And the next 10 (21-30) in a separate table and the next ten (31-40) in a separate table and the next ten (41-50) in a separate table and the remaining 4 in a separate table. Any thoughts on how I can accomplish this?

 

 

Full Name          cogs splitPosition
Bob["Bob"]  SVP
Amy["Bob","Amy"]  VP
Ken["Bob","Amy","Ken"]  AVP
Cole["Bob","Amy","Ken","Cole"]  Director
Kim["Bob","Amy","Ken","Cole","Kim"]  Assistant Director
Al["Bob","Amy","Ken","Cole","Kim","Al"]  Analyst
1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @dw700d ,

 

If you have the table sorted on Power Query by the cogs split, just add an index column on the power query and then use that column to filter out that index on the visualization accordingly to your needs.

 

https://support.microsoft.com/en-us/office/add-an-index-column-power-query-dc582eaf-e757-4b39-98e6-b...


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @dw700d ,

 

If you have the table sorted on Power Query by the cogs split, just add an index column on the power query and then use that column to filter out that index on the visualization accordingly to your needs.

 

https://support.microsoft.com/en-us/office/add-an-index-column-power-query-dc582eaf-e757-4b39-98e6-b...


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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