Forum Discussion

a_mixed_life's avatar
a_mixed_life
Resolver I
9 years ago
Solved

Daily Average MTD

Daily Average MTD?   I seem to have a problem getting the proper calculation. I got a working current Daily Average MTD base on the date filter but prefer for it to auto calculate rather than me ch...
  • MattAllington's avatar
    MattAllington
    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