Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tomislav_mi
Helper II
Helper II

Top 3 Customers for each Cohort

Hey guys,

Can I get please help on this:

I am struggling to get Rank of Top 3 customers (based on sales) within each Cohort. 
I have been trying to get calculated column like in the example (highlighted orange) but always stopping somewhere.

If there is some way how to get a measure that can serve as a filter it could also be great.

Data looks like this:

CustomerReportDateLifetimeMonthCohortSalesTop3
A1/31/2020101-20202003
A2/29/2020201-2020200 
A3/31/2020301-2020300 
A4/30/2020401-2020300 
A5/31/2020501-2020300 
B1/31/2020101-20206001
B2/29/2020201-2020500 
B3/31/2020301-2020500 
B4/30/2020401-2020500 
B5/31/2020501-2020500 
B6/30/2020601-20205002
C1/31/2020101-2020350 
C2/29/2020201-2020350 
C3/31/2020301-2020350 
C4/30/2020401-2020250 
DDD5/31/2018105-2018582
DDD6/30/2018205-201868 
eee5/31/2018105-2018143
eee6/30/2018205-201814 
fff5/31/2018105-20183001
fff6/30/2018205-2018600 



Hope there is someone who can help!

Thank you all!



1 REPLY 1
Greg_Deckler
Super User
Super User

I believe I have some examples like that here:

https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors