Author Topic: Converting Prior() Function in Brio to Reportnet  (Read 1242 times)

Offline Vathi

  • Associate
  • **
  • Posts: 2
  • Forum Citizenship: +0/-0
Converting Prior() Function in Brio to Reportnet
« on: 24 May 2006 01:53:09 am »
we are doing conversion of Brio reports to  Reportnet..................

In Brio Prior function is a function used in the calculated columns, this will give the value of the previous row.

e.g. Prior(Feature) means this will return you the previous row value in Feature column

Vendor Cost_2 =  if ( Prior ( Feature ) == Feature && Prior ( Product_Usage_Type ) != Product_Usage_Type) {0 }  else { Vendor_Cost}

Vendor Cost_2 will be 0 if the value in the Feature column is same as the value in the previous row and Product_Usage_type should not be equal to the previous row value in the Product_Usage_Type column, otherwise Vendor Cost_2 will be the value of Vendor_cost column of the same row.

how to  replicate the same in Reportnet ?

Offline BIsrik

  • Statesman
  • ******
  • Posts: 473
  • Forum Citizenship: +12/-3
Re: Converting Prior() Function in Brio to Reportnet
« Reply #1 on: 31 May 2006 08:48:25 am »
I feel there is no direct way of achieving this in crn. I assume that u r using oracle as database. If so, create a query subject with a manual sql in it and use the olap function available. u can check this link

http://www.oracle-base.com/articles/misc/LagLeadAnalyticFunctions.php

and use, the query subject in the report.

Srik

Offline Vathi

  • Associate
  • **
  • Posts: 2
  • Forum Citizenship: +0/-0
Re: Converting Prior() Function in Brio to Reportnet
« Reply #2 on: 09 Jun 2006 04:31:38 am »

Hi

We used Analytical lag function and able implement the same in Reportnet, even cognos support suggested the same thing.


Thanks a lot.

Offline BIsrik

  • Statesman
  • ******
  • Posts: 473
  • Forum Citizenship: +12/-3
Re: Converting Prior() Function in Brio to Reportnet
« Reply #3 on: 12 Jun 2006 01:10:07 am »
Plz update the status of the topic.

Srik