Forum Discussion
Anonymous
5 years agoNot applicable
SUM multiple month values over years
I'm trying to sum multiple month values over several years e.g. Jan 2007, Jan 2008, Jan 2009. I'm using the following formula however when I try push the date forward 12 months it comes back to t...
- 5 years ago
Anonymous
Try:
Aggregation 3 = IF ( ISINSCOPE ( 'Date'[Month] ), CALCULATE ( SUMX ( Sales, Sales[Quantity] * Sales[Net Price] ), ALLEXCEPT ( 'Date', 'Date'[Month] ) ), SUMX ( FILTER ( ALL ( Sales ), YEAR ( [Order Date] ) <= SELECTEDVALUE ( 'Date'[Calendar Year Number] ) ), Sales[Quantity] * Sales[Net Price] ) )Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,Community Support Team _ Janey
v-janeyg-msft
Community Support
5 years agoHi, Anonymous
The picture is yours, I just ask about your needs. You didn’t provide a sample file. How could I have it? I iust wrote the code according to your description.
If you still need help, please upload some insensitive data samples and expected output, So we can help you soon.
Best Regards,
Community Support Team _ Janey
Anonymous
5 years agoNot applicable
Apologies.
Please find link attached to file.
https://www.dropbox.com/s/giyeda55w6ybv7f/Monthly%20Average%20Over%20Years.pbix?dl=0
- v-janeyg-msft5 years ago
Community Support
Anonymous Sorry, I'm too busy today and I will get back to you tomorrow.