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
Hello,
I am trying to write a loop that will give me a running total on submissions grouped on ID / Quarter. The below table is the base table I have:
The desired output would ideally look like this:
The dax I wrote does not give me my desired outcome and I am unsure of how I should approach this. Please see below for my dax and the output it is giving me.
Appreciate any help anyone can provide! Thanks!
Solved! Go to Solution.
@Mactoff Try this:
SubmittedConsistency =
VAR __MaxQuarter = MAX('Table'[Quarter])
VAR __ID = MAX('Table'[ID])
VAR __Table = FILTER(ALL('Table'), [ID] = __ID && [Quarter] <= __MaxQuarter)
VAR __Result = SUMX(__Table,[Submitted])
RETURN
__Result
Based on this: Better Running Total - Microsoft Power BI Community
@Mactoff Try this:
SubmittedConsistency =
VAR __MaxQuarter = MAX('Table'[Quarter])
VAR __ID = MAX('Table'[ID])
VAR __Table = FILTER(ALL('Table'), [ID] = __ID && [Quarter] <= __MaxQuarter)
VAR __Result = SUMX(__Table,[Submitted])
RETURN
__Result
Based on this: Better Running Total - Microsoft Power BI Community
You're a legend, thank you!
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!