cancel
Showing results for
Did you mean:
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
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])`

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.
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.
2 REPLIES 2
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])`

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.
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.

Announcements

#### Community Highlights

Find out what's new in the Power BI Community!

#### Power Platform Summit North America

Register by September 5 to save \$200

#### Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 102 members 1,611 guests
Recent signins: