Create Data Source from other Data Source bug
Posted: Sun Apr 22, 2012 4:55 pm
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!
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!