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 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
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 |
---|---|
57 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
44 | |
40 |