cancel
Showing results for 
Search instead for 
Did you mean: 

Input parameter in Analytical View

former_member205144
Active Participant
0 Kudos

Hi,

   I have a requirement, where user will enter a year in input parameter.But, the result will have the data of year entered by user and year-1 .

  Can can I achieve this??

Regards

Lavanya

Accepted Solutions (0)

Answers (2)

Answers (2)

anindya_bose
Active Contributor
0 Kudos

Hi Lavanya

I would prefer to do it in Calculation View.

Either I would create a fresh calculation view or I shall put already existing analytic view in a graphical calculation view.

This is because Calculation View supports complex filter eka Filter Expression.

Step 1:  Attach the Analytic View in Projection Node.

Step 2.  Creation Input Parameter on the Cal View

Step 3;  In filter expression put the following syntax

"YEAR" = '$$USER_YEAR$$' OR  "YEAR" = ( '$$USER_YEAR$$' - 1 )

Let me know for any issue.

Cheers

Anindya

lucas_oliveira
Advisor
Advisor
0 Kudos

Hi,

I don't see why not. You can build two calc attributes based on the input parameter, one for the first day of the previous year and another for the last day of the year selected, and finally use them for filtering the date you need to filter.

BRs,

Lucas de Oliveira