Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
Can anyone help me on finding consistent top customers for last 3 years.
Regards,
Srivalli
Solved! Go to Solution.
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
Hi @srivally,
Does that make sense? If so, kindly mark the answer as solution to close the case.
Regards,
Frank
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
Hi @srivally,
Does that make sense? If so, kindly mark the answer as solution to close the case.
Regards,
Frank
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |