Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Error while trying to execute query in IDT+

$
0
0

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:

 

QueriesOutcome
current fiscal month; fiscal monthsuccessful
current fiscal month; FYTDsuccessful
fiscal month; FYTDError
current fiscal month; fiscal month; FYTDError

 

7-23-2015 4-50-43 PM.png

 

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.


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>