COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Topic started by: pooja on 31 Oct 2008 09:30:10 AM

Title: calculating total
Post by: pooja on 31 Oct 2008 09:30:10 AM
monthly entrance fee 45/50/85...varies

how to get total of montly fees according to month select by player......like
if player select 2month then 45*2=90.....and if 6month then 45*6=270...and so on....


pjsgfdsdfdgdfs
Title: Re: calculating total
Post by: robin2008 on 31 Oct 2008 09:38:35 AM
you can do the total........go to funtions on report exprerssion..
that will work


thank
Title: Re: calculating total
Post by: DanSev on 03 Nov 2008 02:49:02 PM
if the report has a prompt that the user enters a number of month (or a predefined number) In your query create a data item called 'Total Fee', and place in it this expression:

#'[Monthly Entrance Fee] * ' + prompt('number_of_months','token','6')#

number_of_months -- the parameter name used in the prompt, and 6 is the default value.
Monthly Entrance Fee is a reference to the data item that stores the entrance fees.
Title: Re: calculating total
Post by: madhupujari on 04 Nov 2008 04:22:43 AM
Quote from: robin2008 on 31 Oct 2008 09:38:35 AM
you can do the total........go to funtions on report exprerssion..
that will work


thank