BIRT Exchange Forum: Fetching single row - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fetching single row Rate Topic: -----

#1 User is offline   rupal Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 08-May 12


Posted 08 May 2012 - 02:21 AM

Hi,

I am using BIRT to create a report.I have written a query that fetches me the count of requirements under low,medium and high complexity.The sql query fetches me 3 rows one for each type of complexity.Now i need to multiply each count with its complexity weight.How do i do it.The dataset contains three rows one for count of requirements for each category of reqs.
0

#2 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 08 May 2012 - 08:03 AM

You should be able to add a computed column to the data set with an expression that multiplies count times your weight based on the row value of complexity. For example:

if( row["Complexity"] == "low" ){
wgt = 1;
}else if(row["Complexity"] == "med"){
wgt = 2;
}else{
wgt =3;
}
row["Count"]*wgt;

Jason
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users