Calculate column in Data from other Data Source

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

Calculate column in Data from other Data Source

Post by jay@bplogix.com »

I cannot seem to add a calculated column to a datasource that is of type "Data from other Data Source". Are calculated columns supported in these datasources?
thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Calculate column in Data from other Data Source

Post by Alex K. »

Hello,

Unfortunately, on the current moment, calculated columns not supported in the "Data from other Data Source" datasources.

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

Calculate column in Data from other Data Source

Post by jay@bplogix.com »

Is there any workaround for thuis? In need to make calculations based on the data in the "Data from other Data Source"

For example, how can I set up a report that has this as the input data:
User Sales_Cat_A Sales_Cat_B
Jay 100 0
Jay 200 50
Bill 100 200
Jay 0 100
Bill 100 200

I want to show each user, the total sales they had in Cat_A, the total sales in Cat_B, and the percent sales that were in Cat_A. Very easy to create a "Data from other Data Source" and group by "User", use Sum for Sales_Cat_A and Sales_Cat_B.
User Sum_Sales_Cat_A Sum_Sales_Cat_B Percent_Sales
Jay 300 150 200%
Bill 200 400 50%

Normally the Percent_Sales would just be a calculated column with a simple formula. How do I accomplish something like this when using "Data from other Data Source"?

thx,
Jay
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Calculate column in Data from other Data Source

Post by Ivan »

Hello,

Please check the sample report in attachment.
Also for the correct work of this report, please use the next prerelease build from 22-May-2011 when it will be available.

Thank you.
Attachments
1077.1.csv
(90 Bytes) Downloaded 206 times
1076.Report sample.zip
(2.49 KiB) Downloaded 242 times
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Calculate column in Data from other Data Source

Post by jay@bplogix.com »

Hi,

I get this error when I run the report:
Error running report: Object reference not set to an instance of an object.

I am using the pre-release from today SW_2011.06.15.

Also, when I edit the properties of the datasource, it deletes my calculated column.

Thanks
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Calculate column in Data from other Data Source

Post by Ivan »

Hello,

[quote="jay"@bplogix.com]I get this error when I run the report: .....[/quote]
Please use the next prerelease build from 22-Jun-2011 when it will be available.

[quote="jay"@bplogix.com]Also, when I edit the properties of the datasource, it deletes my calculated column.[/quote]
The problem is solved.
The patch will be available in the next prerelease build from 22-Jun-2011.

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

Calculate column in Data from other Data Source

Post by jay@bplogix.com »

I just tried the new build and when I edit the datasource, it still deletes all of my calculated columns.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Calculate column in Data from other Data Source

Post by Vladimir »

Hello,

This error was fixed for Win designer.
We have fixed this error also in the Web designer, the update will be available in the next prerelease build on June, 29.

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

Calculate column in Data from other Data Source

Post by jay@bplogix.com »

I just installed the latest pre-release and the bug is still there.

When I add a calculated column to a Data from other Datasource, it adds correctly. BUT when I view the properties of that datasource, it deletes all of the calculated columns!

Was that supposed to be fixed?

Jay
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Calculate column in Data from other Data Source

Post by Vladimir »

Hello, Jay

Sorry, this fix was not included in previous prerelease build. It will be included in a prerelease build on June, 7.

Thank you.
Post Reply