Forum Discussion
YTD Measure using Forecast for uncompleted month
- 9 years ago
OK I built something that looks to work... proabably could be optimised:
Base Measures:
Current Month = MONTH(TODAY())
Current Year = YEAR(TODAY())
FP Month = MONTH(MAX(Table1[Fiscal Period]))
FP Year = YEAR(MAX(Table1[Fiscal Period]))
Total Estimate = SUM(Table1[Estimate])
Total Sales = SUM(Table1[Sales])
Outputs
Output = IF([FP Month]<[Current Month]||[FP Year]<[Current Year],[Total Sales],[Total Estimate])
I needed to SUMX these for the YTD to work properly - note the incorrect Total of Output 1 in the pic
Output2 = SUMX(Table1,[Output])
FPYTD = CALCULATE([Output2],DATESYTD(Table1[Fiscal Period],"11/30"))
This is semi working for me and I think it is very very close to getting the desired results. The last issue I am running into is that for Output2 = SUMX(Table1,[Output]), the estimate is in another table than the sales. This is resulting in FPYTD showing correctly for the first four months but incorrect for the remaining months as I am getting the Grand total shown for those months.
Is there a work around for this?
Appreciate all your help!
Hi Kevin,
I have the similar issue and seems to be stuck at the point where you have almost mentioned. I would kie to know how you did it and was you able to fix the issue you faced. I am having a Cumalative YTD value and YTD +FC value which changes based on month selection. Please refer the below link where I have posted my query and l will know if you can help me on this
Link for Original Question