Answered by:
RDLC Report

Question
-
Hello,
I am having data as below in my dataset
1234 DEFG 100
1234 DEFG 133
and i want to show data in rdlc as below
1234 DEFG 233
DEFG
i have used group property for grouping 1234 but how to add 3rd column for the group please help
Monday, June 15, 2015 10:33 AM
Answers
-
The group by option is available vai postgreSQL also
You can do that via the report wizard by simply applying the below configuration, let's say I have 3 columns in my DT and I want to group by Summation of Total column:
Fouad Roumieh
- Marked as answer by Youjun Tang Tuesday, June 23, 2015 7:15 AM
Monday, June 15, 2015 12:58 PM -
Don't get dataset which are equal to the whole table in the database.
While testing with a new database this gives still usable results. As soon as the database is used more everything goes to slow.
Use a good SQL Transact Select string to select the data you need for reports.
Success
Cor- Proposed as answer by Fouad Roumieh Monday, June 15, 2015 11:36 AM
- Marked as answer by Youjun Tang Tuesday, June 23, 2015 7:15 AM
Monday, June 15, 2015 11:14 AM
All replies
-
um just sum(yourvariable) ?Monday, June 15, 2015 11:04 AM
-
Hello,
Thanks for the quick response.sum will give the sum of complete column i want sum based on group.
i have used sum(Fields!Variable.value,"Group1")
but the resulting rdlc report is as below
1234 DEFG 233
DEFG 233
i want the result to be as
1234 DEFG 233
DEFG
Monday, June 15, 2015 11:08 AM -
Don't get dataset which are equal to the whole table in the database.
While testing with a new database this gives still usable results. As soon as the database is used more everything goes to slow.
Use a good SQL Transact Select string to select the data you need for reports.
Success
Cor- Proposed as answer by Fouad Roumieh Monday, June 15, 2015 11:36 AM
- Marked as answer by Youjun Tang Tuesday, June 23, 2015 7:15 AM
Monday, June 15, 2015 11:14 AM -
I can expect one row to come out of the two rows above as grouped, but what is the second row that you want in the reuslt as DEFG only?
1234 DEFG 233
DEFG ??
Fouad Roumieh
Monday, June 15, 2015 11:28 AM -
I want second row as empty.Monday, June 15, 2015 11:32 AM
-
Then Cor's suggestion should work for you, a simple t-sql query like below will do this job:
SELECT Col1, Col2, SUM (Col3) FROM Table GROUP BY Col1, Col2,Col3;
Are you loading data from DB via t-SQL?
Fouad Roumieh
Monday, June 15, 2015 11:38 AM -
No,I am using postgreSQL in my case.Please suggest if it is possible through expression.Monday, June 15, 2015 11:43 AM
-
The group by option is available vai postgreSQL also
You can do that via the report wizard by simply applying the below configuration, let's say I have 3 columns in my DT and I want to group by Summation of Total column:
Fouad Roumieh
- Marked as answer by Youjun Tang Tuesday, June 23, 2015 7:15 AM
Monday, June 15, 2015 12:58 PM -
And that will create for you a report as below:
Fouad Roumieh
Monday, June 15, 2015 1:06 PM