Forum Discussion

aukev's avatar
aukev
Helper III
7 years ago
Solved

Getting equal quartiles from a ranking

I have a list of around 80.000 customers. I`m trying to rank them based on how often they have purchased. For this I've created a calculated column called Frequency. This is basically just a count of...
  • v-danhe-msft's avatar
    v-danhe-msft
    7 years ago

    Hi aukev ,

    Based on my test, you could use below formula to rank your data:

    Frequency Rank = COUNTROWS(FILTER(ALL('magentoCustomers'),ISONORAFTER('magentoCustomers'[Frequency],SELECTEDVALUE(magentoCustomers[Frequency]),DESC,'magentoCustomers'[customerID],SELECTEDVALUE(magentoCustomers[customerID]),DESC)))

    Result:

    You could also download the pbix file to have a view.

     

    Regards,

    Daniel He