COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: norakmal.hakim on 13 Apr 2016 11:53:27 PM

Title: "vlookup" function in cognos report studio similar in excel
Post by: norakmal.hakim on 13 Apr 2016 11:53:27 PM
Hi is there a function such that:

Let's say the table is as such below:

Date                   Contract Year Quarter                  Sales
2016-05-01             2016 Q2                                 1000.00
...
2016-12-30              2016 Q4                                 2502.00
2016-12-31              2016 Q4                                 2000.00

I want the function to say return the contract quarter given a certain date, i.e. if input is 2016-12-30 I want the function to return "2016 Q4" so that I can apply this in a filter to filter sales only for the quarter.

Ultimately what I want to achieve is a "sum to date" for sales starting from the starting date for the quarter.
Title: Re: "vlookup" function in cognos report studio similar in excel
Post by: navissar on 14 Apr 2016 06:55:43 AM
Sounds like you're looking for a parameterised filter...
Title: Re: "vlookup" function in cognos report studio similar in excel
Post by: BigChris on 14 Apr 2016 07:52:23 AM
Sounds to me like you want a calendar table building in your database...