Reply
Regular Visitor
Posts: 17
Registered: ‎07-19-2018
Accepted Solution

consistent top customers

Hi All,

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

Regards,

Srivalli


Accepted Solutions
Highlighted
Community Support Team
Posts: 1,658
Registered: ‎07-10-2018

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

Attachment
Community Support Team
Posts: 1,658
Registered: ‎07-10-2018

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


All Replies
Highlighted
Community Support Team
Posts: 1,658
Registered: ‎07-10-2018

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.
Attachment
Community Support Team
Posts: 1,658
Registered: ‎07-10-2018

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.