Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello ,
I am trying to work on the rolling sum of the total headcoun,
Following is the dax query i have written
Estimate is the table name and i am counting the number of people added every month on a cummulative basis but it is not working
Kindly advice
Thank you
Solved! Go to Solution.
Hi @unknown_anony ,
Thanks for Greg_Deckler reply.
Here is a measure you can try
rolling total =
IF(
'Table'[Value] = 0,
0,
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[Date] <= EARLIER('Table'[Date])
)
)
)
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @unknown_anony ,
Thanks for Greg_Deckler reply.
Here is a measure you can try
rolling total =
IF(
'Table'[Value] = 0,
0,
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[Date] <= EARLIER('Table'[Date])
)
)
)
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@unknown_anony Try this but use SUMX instead of AVERAGEX: Better Rolling Average - Microsoft Fabric Community
i do want to average, i want to sum the headcounts monthly basis,
for ex:-
Old column new column
Jan 2024 - 16 Jan 2024 - 16
Feb 2024 - 0 Feb 2024 - 0
Mar 2024 - 2 Mar 2024 - 18
Apr 2024 - 4 Apr 2024 - 22
so on and so forth
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
61 | |
36 | |
32 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |