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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to find a way of using this formula
=IF(A2="";"";IF(AND(B2=B1;AF2<>AF1);(AR1+1);IF(AND(B2=B1;AF2=AF1);AR1;IF(B2<>B1;1))))
in power pivot. Is there a way I can do that?
An exact translation is rather difficult but it's certainly possible to index per group as it appears you're doing here.
See here for how this works:
https://www.myonlinetraininghub.com/numbering-grouped-data-power-query
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!