BIRT Exchange Forum: Display sum value for multiple series - 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

Display sum value for multiple series how to Display a sum value for multiple series in a bar chart Rate Topic: -----

#1 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 06 June 2012 - 09:40 AM

Hi,

in the joined file...
I want to display the sum of all the series at the right end of the bar :
For example : 184,04 for the Diamond T620 Se... line, sum of 68,29 and 115,75 )

I dont find a solution for that...have I to add an invisible serie with the sum ? put a script to do that ?

thanks in advance for your answer

Vincent

Attached File(s)


---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#2 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 06 June 2012 - 02:10 PM

Do you want the individual series labels as well? Or just the total?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#3 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 06 June 2012 - 08:38 PM

Hi
In this case I just want the total but why this question ? It is not the same way to produce the report with or not the total ?
Regards

Vincent
---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#4 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 08 June 2012 - 09:22 PM

The reason for the question is that if you're already using the series labels to display each series value, you won't be able to use the original series labels to put the total. If you're not using the series labels, you'd just make the top series label be "outside" the bar, and compute the total and use script to change the label value. If you had been wanting to show the individual series values, too, one way would be to use a couple extra series, like you said above. Let me know if you have questions or would like an example.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#5 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 08 June 2012 - 10:22 PM

Thanks Michael
If you have, I'm effectively interested by an example about summing the individual value and use script to change the label. I won't use the individual values.
Best Regards
---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#6 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 13 June 2012 - 07:09 AM

Sorry for the delay. Take a look at this edited version of your report. The only place you need to look is in the chart script. Hope this helps.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#7 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 15 June 2012 - 01:32 PM

Hi Michael
Sorry but I cannot try before next week.
I will give you a feedback.

Best regards
---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#8 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 15 June 2012 - 01:58 PM

Sounds good. Just let me know if there are issues.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#9 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 29 June 2012 - 12:02 AM

Hi Michael

I had still few problems with this topic... essentially on rounding summing float values..
Resolved in the joined example...
Another problem, resolved with my idea but perhaps there is another way...if you have an idea ?
When the last series is equal to 0, the sum is not display (in the example : 1958 Setra Bus)
So my idea is to put a 0.000001 value (by computed column or another way) in this case (in the example : 1957 Chevy Pickup)

hope this example will be helpfull for another

Regards

Vincent

Attached File(s)


---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#10 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 29 June 2012 - 07:58 AM

Your computed column idea is what I had done in the case that you had wanted the individual series values to show, too. So, you're right on track with what I would have done. :)
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
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