Forum Discussion
Rolling average forecast
Hi Whitney,
Please check:
Does your date column contain an irregular date format? For example 'Year 9999'.
If the issue persists, you can abandon the time-intelligent function and use the time function instead.
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
HI v-xulin-mstf
See below - issue still persists. Time intelligence was ticked however, unticked still results in the same error.
- v-xulin-mstf5 years ago
Community Support
Hi Whitney,
Try measure as:
Total WIP Forecast = IF(ISBLANK([Total WIP Hours]), CALCULATE([Total WIP Hours],DATEADD('IDW DimDate'[Date],-1,YEAR)), BLANK() )Best Regards,
LinkIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- Whitney5 years ago
Helper II
Hi v-xulin-mstf still getting the same error: 'an invalid numeric representation of a date value was encountered'
The total WIP hours formula is still working:
Total WIP Hours = SUMX(FILTER('Powertrains Tracking Sheet',[Powertrain_WIP_Relative]="WIP"),'Powertrains Tracking Sheet'[Build Hours])Powertrain_WIP_Relative =VAR MaxDate = EOMONTH([CurrentMonth],0)VAR MinDate = EOMONTH(MaxDate,-7) + 1VAR IsWip =IF(MAX('IDW DimDate'[Date]) >= MAX('Powertrains Tracking Sheet'[Inspected])&& MAX('IDW DimDate'[Date]) <= EOMONTH(MAX('Powertrains Tracking Sheet'[Planned Assembly Start]) ,-1),"WIP")returnIF(MAX('IDW DimDate'[Date]) <= MaxDate && MAX('IDW DimDate'[Date]) >= MinDate,IsWip)- v-xulin-mstf5 years ago
Community Support
Hi Whitney
You can abandon the time-intelligent function and use the time function instead.
Try measure as:
Total WIP Forecast = var maxdate=MAX('IDW DimDate'[Date]) var mindate=DATE(YEAR(maxdate)-1,MONTH(maxdate),DAY(maxdate)) return IF(ISBLANK([Total WIP Hours]), CALCULATE( [Total WIP Hours], FILTER( 'IDW DimDate', 'IDW DimDate'[Date]<maxdate && 'IDW DimDate'[Date]>mindate ) ), BLANK() )Best Regards,
LinkIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.