Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Neon Expression Builder - IF statement Syntax(how to format an if condition in BIRT chart expression builder)
Neon Expression Builder - IF statement Syntax [message #1840247] Fri, 09 April 2021 15:31 Go to next message
david moran is currently offline david moranFriend
Messages: 3
Registered: April 2020
Junior Member
Good morning,

in my source data i have several variables that are time duration values (in seconds). when combining these attributes in a BIRT bar chart,
using the expression builder, to get an average value from the raw 'seconds'
for example, i have this:


Yields an average value in minutes.
issue is if the "Rpt1ConnCount" is zero,
i have a divide by zero condition, which seriously messes up my graph.

i want to to set the condition something like this:


is it possible to do this in the expression builder?
if yes, do you have a syntax example i could follow?

Re: Neon Expression Builder - IF statement Syntax [message #1840254 is a reply to message #1840247] Sat, 10 April 2021 00:54 Go to previous message
Colin Sutton is currently offline Colin SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
if(row["RPT1CONNCOUNT"] > 0)
Previous Topic:Format Value in Chart Legend
Next Topic:Run-time parameter no longer defaults to "Null Value"
Goto Forum:

Current Time: Sun Oct 02 23:47:56 GMT 2022

Powered by FUDForum. Page generated in 0.02156 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top