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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Users online (5,281)