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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Nick_Kalichava
Frequent Visitor

RANKX with condition

Hello experts!

I need help with RANKX.
I have a sales table : 

DateEmpGroupSales
31-Dec-23LanaSales650,000
31-Dec-23NickSales500,000
31-Dec-23MarySales400,000
31-Dec-23AnnaSales450,000
31-Dec-23ZazaOps30000
31-Dec-23JijiEng30000
30-Nov-23NickSales200,000
30-Nov-23MarySales300,000
30-Nov-23AnnaSales340,000
30-Nov-23ZazaOps300000
30-Nov-23JijiEng

300000

 

I need to rank employees only form Group = "Sales" and only the ones that workd previous month... O.O

So the outcome for december ranking would be 

Nick 1

Anna 2

Mary 3.

 

Any suggestions?

 

3 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1705196668888.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Ahmedx
Super User
Super User

here's another solution

Screenshot_4.png

View solution in original post

ThxAlot
Super User
Super User

ThxAlot_0-1705211627936.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

3 REPLIES 3
ThxAlot
Super User
Super User

ThxAlot_0-1705211627936.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Ahmedx
Super User
Super User

here's another solution

Screenshot_4.png

Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1705196668888.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors