Hi All,
I was testing a query which had current fiscal month (numeric dimension), fiscal month (numeric dimension) and FYTD (string dimension). When I tried running as per combination below the outcome is as following:
Queries | Outcome |
---|---|
current fiscal month; fiscal month | successful |
current fiscal month; FYTD | successful |
fiscal month; FYTD | Error |
current fiscal month; fiscal month; FYTD | Error |
Hence please advice what am I doing wrong. The individual dimension SQL Syntax is as following:
FTYD:
CASE
WHEN @Select(SALES_FORECAST\Data part\Time\Fiscal Month Number)<@Select(SALES_FORECAST\Data part\Time\Current Fiscal Month Number)
THEN 'True'
ELSE 'False'
END
Current Month Number
month(@Select(SALES_FORECAST\Data part\Time\curDate()))
Fiscal Month
toInteger(@Select(SALES_FORECAST\Data part\Time\substring(@Select(SALES_FORECAST\Data part\Time\toString(@catalog('SALES_FORECAST')."PUBLIC"."IGOFHDS10"."0FISCPER")),6,2)))
I would really appreciate if I can get help in overcoming this error as it is really holding me up.
Thank you.