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.
Hi All,
again I need your help. I have a visual (line- & barchart) with numbers per week, and a budget per month. The only problem is that I also need a runningsum per month and I don't seem to get it working.
Does anyone have an idea?
Thanks you!
Solved! Go to Solution.
Hi @Sander1401 ,
Try this
RunningSum Sales per month =
CALCULATE (
SUM ( 'Table'[Weekly sales] ),
FILTER (
ALLSELECTED ( 'Table' ),
[Monthly budget] = MAX ( 'Table'[Monthly budget] )
&& [week] <= MAX ( 'Table'[week] )
)
)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Sander1401 ,
Try this
RunningSum Sales per month =
CALCULATE (
SUM ( 'Table'[Weekly sales] ),
FILTER (
ALLSELECTED ( 'Table' ),
[Monthly budget] = MAX ( 'Table'[Monthly budget] )
&& [week] <= MAX ( 'Table'[week] )
)
)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
In your Data, do you have a Date column or do you have a Month and Year column from where a Date can be generated? If yes, then in the Calendar table, also have a Week number column.
How do you want to handle months which end mid week?
For example 1 Sep 2021 fell on a Wednesday.
If you organisation has specific rules then you need to create calendar with the month and week for each date, the use that to calculate your totals.
User | Count |
---|---|
84 | |
80 | |
70 | |
47 | |
43 |
User | Count |
---|---|
108 | |
54 | |
50 | |
40 | |
40 |