Forum Discussion
Rank Customers Sales by Location
Hello Good people,
I have read quite a lot of questions/posts of similialr to scenario and couldnt' get the answer. My case is as per below,
I have a table which includes client, contract location, and ITO(sales). see sample. I want to come with visual that will rank customer's ITO as per table( see example)
Customer Table
How the ranking should be
Based on the selected customer, we would like to see
Their contracts location, the total ITO(Sales) for that contract location and the total number of customers that have the same contract as the selected customer and mostly importantly the rank to compared to others for that contracts location.
Currently this is what I have
Thanks in advance.
5 Replies
- amitchandak
Super User
MarmosspinneBW , based on what I got . assume total_ITO is a measure
rankx(allselected(Table[contract location]) ,[total_ITO],,dese, dense)
above will use filters
this will not
rankx(all(Table[contract location]) ,[total_ITO],,dese, dense)
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale - MarmosspinneBWFrequent Visitor
amitchandak Thanks !
I have managed to rank with the first formalar as shown in my qestions. I have to rank also based on the contract location for that selected customer. Your suggestion only gives us the same rank.. see below
- amitchandak
Super User
MarmosspinneBW , try this
rankx(all(Table[Client], Table[contract location]) ,[total_ITO],,dese, dense)
- MarmosspinneBWFrequent Visitor
For the selected customer, we will like to
1. Rank based on their contracts location 's ITO(sales)
2. View how many customers are there within that contracts location
3. Total ITO(Sales) for each available contract location for the selected customer.
Thanks
- MarmosspinneBWFrequent Visitor
amitchandak Thanks, but the results are same as the previous rank