Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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] )
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
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] )
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
The link is not accessible.
Please check.
Thanks.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
https://drive.google.com/file/d/1htXjhknwwPlLUSS5YOQJFU0i6Fzvx1F5/view?usp=sharing
this is the real link it's working
User | Count |
---|---|
84 | |
79 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
52 | |
50 | |
40 | |
40 |