Forum Discussion
Daily Average MTD
- 9 years ago
Yep, that's great. Assuming your calendar table follows the rules for in built time intelligence functions (read here http://exceleratorbi.com.au/power-pivot-calendar-tables/) you can use the following formulas
Sales MTD =TOTALMTD(factsales[sales amount])
total sales days = distinctcount(factsales[date])
daily average = divide([sales mtd],[total sales days])
i think this will do what you want
Hello Matt,
Fair enough. My tables are loaded or imported from SQL. I have two tables, one is Date Filter and the other is FactSales which includes a column for Posting Date, Document No., Customer No., and Sales Amount. I have
My current calculation works as it uses the Date filter and Sales Amount using the AVERAGEX. I was hoping to get a MTD Daily Average base on the Posting Date at its current month to get an average without me having to ensure to change the month and year filter.
Hopefully that's enough info? Thanks for the response.
Yep, that's great. Assuming your calendar table follows the rules for in built time intelligence functions (read here http://exceleratorbi.com.au/power-pivot-calendar-tables/) you can use the following formulas
Sales MTD =TOTALMTD(factsales[sales amount])
total sales days = distinctcount(factsales[date])
daily average = divide([sales mtd],[total sales days])
i think this will do what you want
- a_mixed_life9 years agoResolver I
This is fantastic! I am using the built in time intelligence. Appreciate it!
I think where I was missing with the calculation was that I was trying to do it all in one line of code versus breaking it down to 3.