Here we have a target table provided at the Month level and we would like to display the target at the day level also we would like to see MTD Targets.
The target table has 4 columns: Target and Month. Quarter and Year
We have added 2 new columns to the target table Month start date and the Month end date (Named it Date).
Month Date = "01-" &[Order_Month] & "-" &[Years] // Month Start Date. Changed Data Type to Date
Date = EOMONTH([Month Date],0) // Month End Date
We also added a date table. this table has 2 columns date and year.
Date = ADDCOLUMNS(CALENDAR(date(2013,01,01),date(2020,12,31)),"Year", year([Date]),"Year Month",FORMAT([Date],"YYYYMM"))
Daily Target: To create a daily target we used the closing balance of the Month. This will replicate the data for each day of the Month. You will be able to see the same number every day. Visual is using date from date table.
Now we need to divide each of these rows by days of Month to get the correct daily target