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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
navedkhan
Helper III
Helper III

Dynamic Ranking based on rolling 4 months

Hi All - looking for help here. 

 

@Zubair_Muhammad 

 

i've a table which has the following values;

Year2019    
Allocated to teamJanFebMarAprTotal
ABC21321056119
XYZ451436 95
HGS 488224154
NKO67204656189
OIU98 1613127
KLO1217 82111
AGY34282912103
YTE17864365211
UJN60379832227
Total354282360340 

 

Now i want below table - 1) to show top 4 teams based on rolling 4 months automatically sorted; 2) group rest (other than Top-4) as 'Others'

 

Capture.PNG

 

Anyone please rush to provide help me?

 

Many thanks,

N

3 REPLIES 3
navedkhan
Helper III
Helper III

Anyone please could someone reply?

 

ImkeF
Community Champion
Community Champion

This looks like what you need here: https://blog.gbrueckl.at/2019/05/power-bi-dynamic-topn-others-with-drill-down/

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Not exactly this is working for me.... here i have to;

 

1) Top 4 based on totals

2) and for rolling 4 months

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.