Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to count drop in trip

Could anyone help recommend formula please. For example, I would like to count distinct Store name by trip and also provide ranking as in count drop column. Thank you.

Trip no.Store nameCount drop
Trip1A1
Trip1B2
Trip2A1
Trip2B2
Trip2C3
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    Incase you want a Calculated Column

     

    count1 drop = 
    RANKX (
        FILTER (
            RankDrop,
            'RankDrop'[Trip no.]
                = EARLIER ( 'RankDrop'[Trip no.] )
        ),
        'RankDrop'[Store name] ,,ASC
    )
    

     

     
     
    Regards,
    Harsh Nathani
    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

6 Replies