Create Data Source from other Data Source bug

Stimulsoft Reports.WEB discussion
Post Reply
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Create Data Source from other Data Source bug

Post by jay@bplogix.com »

It seems that creating a Data Source from other Data source and grouping on a Calculated Column does not work.

To reproduce this, simply create a Data Source (MyDS) with
NAME (string) and VALUE (int)
then create a calculated column CALC_COL (int) as MyDS.VALUE + 1

Then create a new Data Source as Data from other Data Source, select MyDS as the source Data Source, in the Groups, select CALC_COL.

There are no errors when configuring this, but when the report is run, it does NOT group the column correctly. You would expect that all CALC_COL of the same value would be grouped together in the new datasource but they are not. The new data sources has exactly the same number of rows as the source data source ... it is not grouping correctly when the Group field is a calculated column.

My actual problem is that I want to create a data source that groups all rows together by month of a specific Date column in a data source. So I create a calcualted column in source data source as
Month(bpProcess.StartTime)
Then I group by that column. I would expect at most 12 rows in the new datasource, but because of the bug, it does not group the rows together.

Is there a workaround or fix to what I am trying to do?

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Create Data Source from other Data Source bug

Post by Alex K. »

Hello,

Calculated columns cannot be used for sorting, filtering, relations, and some other places. In .NET versions they are removed from the selection list. We will try to remove them as soon as possible.

Thank you.
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Create Data Source from other Data Source bug

Post by jay@bplogix.com »

How would I create a Data source from other Data source to group all entries by the month of a date column? Basically I just want to count all the rows that happen in Jan, Feb, Mar, etc.

My first attempt was to create a calc column as Month(bpProcess.StartTime), and then group on that. Since I cant group on the calc column, how can that be accomplished?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Create Data Source from other Data Source bug

Post by Alex K. »

Hello,

Please send us your report with test data for analysis.

Thank you.
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Create Data Source from other Data Source bug

Post by jay@bplogix.com »

I have created/attached a simple report (with XML data from our website). It shows how I tried to create a Datasource from other datasource to group the date column by the month using a calculated field. It didn't work :( How else can I count all the rows with date fields that happen in Jan, Feb, Mar, etc.

Thanks
Attachments
1821.Report2.mrt
(31.7 KiB) Downloaded 205 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Create Data Source from other Data Source bug

Post by Alex K. »

Hello,

Calculated columns cannot be used for sorting, filtering, grouping, relations, and some other places.
As a way, you can only try to modify the datasource.

Thank you.
Post Reply