Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank by Dates and Customer ID

I have a data set that contains billing information that includes customer id, bill date, and other relevant information. A customer may have received more than one bill in a month so I'd like to "rank" the bills by date created so that I can graph the customers bills in order by that index rather than the bill date.


There are ~400,000 customers and 4 million bills in the data set.


How do I create an index or rank by Customer (using customer id) and then ascending by bill date? I assume I can use RankX but I'm having issues getting it to work correctly.

Not applicable
Not applicable

Never mind, I figured it out thanks to another post on the forum.



@Anonymouswould you mind posting the solution you found to help future people with similar questions?

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

Proud to be a Super User!

Not applicable

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors