Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

YTD Calculations in HANA

$
0
0

Hi All,

 

 

I have a requirement to calculate YTD based on the input fiscal year period in HANA.

 

I have created a input parameter which accepts fiscal year period. I have created a calculated column FY_start to calculate the fiscal start year.

 

FY_START = leftstr('$$ZMONTH$$',4)++'001'.

 

In Filter Expressions i have given a formula

 

("0FISCPER">="FY_START" and "0FISCPER" ='$$ZMONTH$$' )

 

 

When i input 2012004 (2012 April), FY_START is caluclated as 2012001. But does not filter the data correctly in filters.

 

Need your help.

 

 

-- Selva.


Viewing all articles
Browse latest Browse all 4343

Trending Articles