Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I am looking for moving 3 weeks sum measure for a column value. Example as below:
Can anybody help?
Record | Date | EV | Moving Sum | RESULT |
A | 2/04/2021 | 1000 | A | 1000 |
B | 9/04/2021 | 1500 | B+A | 2500 |
C | 16/04/2021 | 1200 | C+B+A | 3700 |
D | 23/04/2021 | 1700 | D+C+B | 4400 |
E | 30/04/2021 | 500 | E+D+C | 3400 |
F | 7/05/2021 | 600 | F+E+D | 2800 |
G | 14/05/2021 | 900 | G+F+E | 2000 |
Solved! Go to Solution.
@amirghaderi as per the informtation provided and data attached in very first post I used that and generated the expected result. See the screen shot below:
One more question,
If I want in another measure, only the MA for last period comes and every previous period becomes zero, then how to chnage the filter?
For example, in the above table, I want to see MA calculated for period 16-Apr-2021 and zero for everything else.
@amirghaderi try this DAX measure:
The numbers dont make sense. any idea why?
@amirghaderi as per the informtation provided and data attached in very first post I used that and generated the expected result. See the screen shot below:
Thanks, It worked. I only chnaged the filter to Allselected to make sure the filter applied to the report works on measure as well.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |