Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
105 | |
79 | |
69 | |
62 |
User | Count |
---|---|
142 | |
105 | |
103 | |
85 | |
70 |