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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Syndicate_Admin
Administrator
Administrator

TABLE OF CONTENTS COLUMN

Good afternoon, I have a table with name and amount sold in a table, I need to add a column that assigns the number 1 to the highest sales value, the next 2 and so on. I need the formula to be with DAX since it's a table where the user is going to fill in with different parameters.
The formula I'm using is the following but it returns several repeated values.

RowNumber2 = RANKX(ALL('BD. Detail of sales movement'), [SALES CALCULATION], ,DESC, Dense)
Best regards!
1 ACCEPTED SOLUTION
vicky_
Super User
Super User

It might be because you use DENSE instead of SKIP in your DAX calculation. (i.e if two rows have the same sales calculation, then rankx assigns the same rank to them.

https://dax.guide/rankx/

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

It might be because you use DENSE instead of SKIP in your DAX calculation. (i.e if two rows have the same sales calculation, then rankx assigns the same rank to them.

https://dax.guide/rankx/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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