Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Everyone,
I've this table I want to create a running total, In the sample data the months are repeating but I want just the 12 months in a year,I tried using some dax calculations
but it didnt work,I also want to calculate the running total by profit restarting every year.
Sample data:https://drive.google.com/file/d/1vRL7p4xT3PAmWhZRhVKdsaZjvaluYzDF/view?usp=sharing
Outcome wished
Thanks in Advance.
Solved! Go to Solution.
Hi @ENGFAKAYODE ,
You can create a measure as below if there is one date field or month number filed in your table.
Running Total =
VAR _selyear =
SELECTEDVALUE ( 'Table'[Year] )
VAR _selmnum =
SELECTEDVALUE ( 'Table'[Month Number] )
RETURN
CALCULATE (
SUM ( 'Table'[Profit] ),
FILTER (
'Table',
'Table'[Year] = _selyear
&& 'Table'[Month Number] <= _selmnum
)
)
In addition, you can refer the following links to get the running total....
If the above ones can't help you, could you please grant us the proper access to your shared file? Thank you.
Best Regards
Hi,
Thank you for your message, and please check the below measure and the attached pbix file whether it suits your requirement.
Yearly running total measure: =
CALCULATE (
SUM ( Orders[Profit] ),
FILTER (
ALL ( Orders ),
Orders[Order Date] <= MAX ( Orders[Order Date] )
&& Orders[Year] = MAX ( Orders[Year] )
)
)
Hi @ENGFAKAYODE ,
You can create a measure as below if there is one date field or month number filed in your table.
Running Total =
VAR _selyear =
SELECTEDVALUE ( 'Table'[Year] )
VAR _selmnum =
SELECTEDVALUE ( 'Table'[Month Number] )
RETURN
CALCULATE (
SUM ( 'Table'[Profit] ),
FILTER (
'Table',
'Table'[Year] = _selyear
&& 'Table'[Month Number] <= _selmnum
)
)
In addition, you can refer the following links to get the running total....
If the above ones can't help you, could you please grant us the proper access to your shared file? Thank you.
Best Regards
https://drive.google.com/file/d/1htXjhknwwPlLUSS5YOQJFU0i6Fzvx1F5/view?usp=sharing
this is the real link it's working
Hi,
Thank you for your message, and please check the below measure and the attached pbix file whether it suits your requirement.
Yearly running total measure: =
CALCULATE (
SUM ( Orders[Profit] ),
FILTER (
ALL ( Orders ),
Orders[Order Date] <= MAX ( Orders[Order Date] )
&& Orders[Year] = MAX ( Orders[Year] )
)
)
Hi,
The link is not accessible.
Please check.
Thanks.
https://drive.google.com/file/d/1htXjhknwwPlLUSS5YOQJFU0i6Fzvx1F5/view?usp=sharing
this is the real link it's working
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |