cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
srivally Regular Visitor
Regular Visitor

Rank customers

Hi All,

 

I want to rank the customers based on Year and Month. I have tried many cases but not worked out. Could you please help me on this.

I have attached the excel file  in the https://www.dropbox.com/s/qmi7aylbqc3bred/Rank%20Sample.xlsx?dl=0

link and the rank which I wanted to display. 

 

Regards,

Srivalli

1 ACCEPTED SOLUTION

Accepted Solutions
srivally Regular Visitor
Regular Visitor

Re: Rank customers

I got the solution. I have created the measure with that query earlier. Instead of creating measure, if we create a column with the same query, it's working.
Thank you @v-yulgu-msft

 

Regards,

Srivalli

3 REPLIES 3
Highlighted
v-yulgu-msft Super Contributor
Super Contributor

Re: Rank customers

Hi @srivally,

 

DAX for calculated column [Rank].

Rank =
RANKX (
    FILTER ( Sheet1, Sheet1[Customers] = EARLIER ( Sheet1[Customers] ) ),
    Sheet1[Balance],
    ,
    DESC,
    DENSE
)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
srivally Regular Visitor
Regular Visitor

Re: Rank customers

Hi @v-yulgu-msft,

I have tried the same DAX query, but I'm facing the error attached.
https://www.dropbox.com/s/37u9pzufgv5klqr/Error.PNG?dl=0

Regards,

Srivalli

srivally Regular Visitor
Regular Visitor

Re: Rank customers

I got the solution. I have created the measure with that query earlier. Instead of creating measure, if we create a column with the same query, it's working.
Thank you @v-yulgu-msft

 

Regards,

Srivalli

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 303 members 2,994 guests
Please welcome our newest community members: