on 11-11-2014 5:00 AM
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.
Should the filter expression include less than or equal to $$ZZMONTH$$ as shown below?
("0FISCPER">="FY_START" and "0FISCPER" <='$$ZMONTH$$' )
Ramana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Selvan,
Do check your data types and along with that
("0FISCPER">="FY_START" and "0FISCPER" ='$$ZMONTH$$' )
So was it filtering only for current day? or it is not applying any filter?
Regards,
Krishna Tangudu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Selva,
Please use this formula :
FY_START = leftstr('$$ZMONTH$$',4)++'0101'.
Your input date should be in this format : YYYYMMDD or YYYYDDMM.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Selva,
could it be possible that you are comparing a String (FY_START) with an Integer (0FISCPER) or an Integer ($$ZMONTH$$) with a String(0FISCPER)?
What are the data types of your variables?
Kind regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.