Forum Discussion

venug20's avatar
venug20
Icon for Resolver I rankResolver I
7 years ago
Solved

based customer performance - provide rank diff b/w two months

Hi Every one,

 

I have data like below..... 

 

Aug & Sep month data customer wise sales. When select Sep month in "Slicer"

 

I want to show employee ranks month wise.....

 

Sample output like below...

 

 SepAug
CustomerRankRank
A47
B24
C38
D65
E12
F71
G83
H56

 

 

Sept month Data :

 

CustomerSep MonthValuesRank
B02-09-2018915261
A09-09-2018895222
E13-09-2018886913
E05-09-2018879614
H16-09-2018876355
F22-09-2018847766
A25-09-2018817897
H08-09-2018815258
D04-09-2018789289
E29-09-20187072010
B10-09-20186954611
C19-09-20186860512
B26-09-20186592713
C27-09-20186555614
C03-09-20186537015
G07-09-20186343816
E21-09-20186333717
A01-09-20185707318
B18-09-20185573119
C11-09-20185544720
D12-09-20184853021
F30-09-20184191822
G23-09-20183703623
F14-09-20183313624
D20-09-20183220125
H24-09-20182782326
G15-09-20182322027
D28-09-20181936028
A17-09-20181626029
F06-09-20181296830

 

 

Aug month Data:

 

CustomerAug MonthValuesRank
A01-08-20185856027
B02-08-20181717626
C03-08-20184922931
D04-08-201814833010
E05-08-20181795885
F06-08-201812584914
G07-08-201810237320
H08-08-20181616108
A09-08-201813917712
B10-08-20189421322
C11-08-201810572219
D12-08-201812029117
E13-08-201810208021
F14-08-20181570719
G15-08-20181823834
H16-08-20181887081
A17-08-20181623817
B18-08-20188310524
C19-08-20185548028
D20-08-201812041516
E21-08-20186465926
F22-08-20188348523
G23-08-201811618718
H24-08-20188214625
A25-08-20185064130
B26-08-201814064311
C27-08-201812148015
D28-08-20185338329
E29-08-20181870933
F30-08-20181880252
G31-08-201813212813

 

 

Thanks in advance....

8 Replies

  • PattemManohar's avatar
    PattemManohar
    Icon for Community Champion rankCommunity Champion

    venug20 I've tried below steps to solve your scenario...

     

    Use "Group By" option in "Power Query Editor" to group customer wise values and the output will look like below

     

    AugCustSeptCust

    Then, add "New Column" using following DAX expression under "Data" pane

     

    AugRnk = RANKX(AugCust,AugCust[Values]) 
    SepRnk = RANKX(SepCust,SepCust[Values]) 

    Have a relationship between these two tables using "Customer" field and now use a "Table" visual to have a output like this..

     

    Final Output

     

    • venug20's avatar
      venug20
      Icon for Resolver I rankResolver I

      PattemManohar

       

      i want to select "Sep" month in Slicer. you can treat as one table for "Aug" & "Sep". 

       

      but should give month selection in "Slicer". based on selection output should be display.

      • PattemManohar's avatar
        PattemManohar
        Icon for Community Champion rankCommunity Champion

        venug20 I didn't really get what you want with the slicer ? That means, if you select "Sep" in slicer then you want to show Sep and Aug. If you select "Aug" then you want to show Aug and Jul  OR you need to show Aug and Sep (Just order of columns preference)...

         

        Please elaborate a bit....