I have the following query:
SELECT cpa_0.[Period] as "Period", cpa_0.[Account] as "Account", cpa_0.[Center] as "Center", cpa_0.[Scenario] as "Scenario", cpa_0.[Effective_Date] as "Effective_Date"
FROM [dbo].[GLDetail] cpa_0
WHERE cpa_0.[Center] = $$Centers-VALUE$$ and
cpa_0.[Account] = $$Accounts-VALUE$$ and
cpa_0.[Period] = case
when $$View-VALUE$$ = 'Periodic' then $$Periods-VALUE$$
when $$View-VALUE$$ = 'Y_T_D' then ('2017-09','2017-08')
end
The VALUE$$ are variables passes and they work fine. My issue is on the last line of the query when $$View-VALUE$$ = 'Y_T_D' then ('2017-09','2017-08'), this does nto work. I need to return a list when my var equals Y_T_D, how can i do that?
Regards