Jump to content
Changes to the Jaspersoft community edition download ×

create $variable


2006 IR Open Dicussion

Recommended Posts

By: karibouxe - karibouxe

create $variable

2006-07-06 04:50

Hi,

 

I want to calcul the percent of person in my report.

There are a $F{NumberPerson} and $F{AllPerson} with the java.lang.Long type.

 

I want to do:

$V{percent} = $F{NumberPerson}*100/$F{AllPerson}

 

I'm no idea, please help me.

Tanks for your help.

 

 

 

 

 

By: karibouxe - karibouxe

RE: create $variable

2006-07-06 05:10

I try that:

new Double(($F{nbperson}.doubleValue() * 100)/$F{allperson}.doubleValue())

 

I'm surprise the result move to down.

for example:

-----------------------

nb | all | %

-----------------------

1 | 4 | null

2 | 4 | 25

3 | 4 | 50

 

...

 

Is it a bug? or it's me the bug ? ;)

 

 

 

 

By: karibouxe - karibouxe

RE: create $variable

2006-07-06 06:03

it's me the bug :P

there was a problem with my groups

sorry

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...