Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT - selecting certain values of a dataset
BIRT - selecting certain values of a dataset [message #1479261] Wed, 19 November 2014 09:40 Go to next message
dario di franceschi is currently offline dario di franceschiFriend
Messages: 1
Registered: November 2014
Junior Member
Hi!
I'm a newbie in Birt ad I got a simple question hopefully,
I have a dataset with several columns, obtained from a .csv file, and from it I created a report aggregated by one of them (ex. ID).
Now I have to extract a certain value from a certain column in correspondance of a certain value of another column.
In SQL I'd do this:

SELECT column1
FROM table
WHERE column2 = "value"

I tried several things, including creating a computed column like this:

Data Type. String
Aggregation: First
Expression: row["column1"]
Filter: BirtComp.equalTo(row["column2"],"value")

but the result is not what I'm searching for.

Hope to get a response from you,

Thanks,

Dario
Re: BIRT - selecting certain values of a dataset [message #1479765 is a reply to message #1479261] Wed, 19 November 2014 18:10 Go to previous message
Jerry Sheets is currently offline Jerry SheetsFriend
Messages: 76
Registered: July 2009
Location: Salt Lake City, UT
Member
I am not sure I understand what you are trying to accomplish, but the first two options that pop to mind are 1) use a sub-query or 2) use a filter
Previous Topic:Using hibernate datasource with Birt 4.3.2
Next Topic:Caused by: org.eclipse.birt.chart.exception.ChartException: Duplicate aggregation name: COUNT
Goto Forum:
  


Current Time: Fri Apr 26 13:42:56 GMT 2024

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

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

Back to the top