cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
srivally Regular Visitor
Regular Visitor

consistent top customers

Hi All,

Can anyone help me on finding consistent top customers for last 3 years.

Regards,

Srivalli

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: consistent top customers

Hi @srivally,

 

I made one sample for your reference, if it doesn't meet your requirement, kindly share your sample data and excepted result to me.

 

Here we need to create two measures to work on it.

 

countlast = CALCULATE(COUNTA(Table1[customers]),FILTER(Table1,Table1[date]<=TODAY() && Table1[date]>=DATE(YEAR(TODAY())-3,MONTH(TODAY()),DAY(TODAY()))))
Measure = TOPN(1,VALUES(Table1[customers]),[countlast])

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Community Support Team
Community Support Team

Re: consistent top customers

Hi @srivally,

 

Does that make sense? If so, kindly mark the answer as solution to close the case.


Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: consistent top customers

Hi @srivally,

 

I made one sample for your reference, if it doesn't meet your requirement, kindly share your sample data and excepted result to me.

 

Here we need to create two measures to work on it.

 

countlast = CALCULATE(COUNTA(Table1[customers]),FILTER(Table1,Table1[date]<=TODAY() && Table1[date]>=DATE(YEAR(TODAY())-3,MONTH(TODAY()),DAY(TODAY()))))
Measure = TOPN(1,VALUES(Table1[customers]),[countlast])

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Community Support Team
Community Support Team

Re: consistent top customers

Hi @srivally,

 

Does that make sense? If so, kindly mark the answer as solution to close the case.


Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 217 members 2,427 guests
Please welcome our newest community members: