Page 1 of 1

Set of Summations group by key column.

Posted: Mon Feb 29, 2016 4:08 pm
by jimyWeb
Hello!
I have a datasource and I want to make several summations grouping the data by a column. I do not want to show all rows, I want to show the summations like this:

ValueColumn A Subtotal 1 (Sum of all rows whose key column has value A)
ValueColumn B: subtotal 2 (Sum ... value B)
ValueColumn C: subtotal 3 (Sum... value C)
..................
value N: N subtotal


Therefore I can not use DataBand or groupfooterband.
How I can do this set of summations?

Thank you very much.

Re: Set of Summations group by key column.

Posted: Tue Mar 01, 2016 11:07 am
by HighAley
Hello.

You could add Summary on the Group Header or Group Footer and set the Height of the Data Band to zero.

Thank you.

Re: Set of Summations group by key column.

Posted: Thu Mar 03, 2016 8:09 am
by jimyWeb
Thank you HighAley it works perfectly :)

Re: Set of Summations group by key column.

Posted: Thu Mar 03, 2016 1:07 pm
by HighAley
Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.

Re: Set of Summations group by key column.

Posted: Tue Feb 06, 2018 11:25 pm
by Fabio Pagano
Hi,
I need help about similar problem.

I'd like to view total of all rows whose column has the same value

I attached a picture of my DATASET, report structure (cattura2) and the result I expect (Opzione_totale).

I used the followind code into field I'd like conditional subtotal:

{SumIf(DataBand2,
DescrizioneLavoroSintetica.Lavoro__Prezzo,
DescrizioneLavoroDettagliata.Lavoro__Note_pubbliche_immagine=="OPZIONE1")}

but not work

any idea about?
thanks in advance.

Re: Set of Summations group by key column.

Posted: Wed Feb 07, 2018 4:45 am
by Edward
Hi Fabio,

Your report should work as you have done everything correctly. Please see the simple example of the report attached where the simple aggregate function is used. So please check the name of the Databand, was it definitely DataBand2?
AggregateByCondition.png
AggregateByCondition.png (230.75 KiB) Viewed 3623 times
AggregateByCondition.mrt
(672.22 KiB) Downloaded 307 times
Thank you,
Edward