Forum Discussion

bobbybamber's avatar
bobbybamber
Frequent Visitor
8 years ago
Solved

Splitting Monthly Targets Into Daily Ones

Hi guys, Run into a bit of a problem, and not sure if there's a more sophisticated way of going about it than I'm currently planning. Currently we've got a monthly target, split by product and ...
  • MFelix's avatar
    MFelix
    8 years ago

    Hi bobbybamber,

     

    You don't need to upload you just need to add a calculated column to your model with the division

     

    Something like:

    Daily Target =
    DIVIDE (
        Table[Spend],
        SWITCH ( TRUE (), Table[Month] = "January", 31, Table[Month] = "February", 28 , ...)
    )

    Be aware that in your table you have Months in Text so I have made the Switch function (... to be replace by all other values) but if you add the end of month date in your table you simply have to write:

     

    Daily Target =
    DIVIDE (
        Table[Spend],
        DAY(Table [End_of_Month])
    )

    Regards,

    MFelix