cancel
Showing results for 
Search instead for 
Did you mean: 

calculation a subtotal as a column

oguzhankorkut
Member
0 Kudos
425

Hello All,

I need to calculate total of each material and show this same total for all document numbers of this material. How can i calculate last column of example on a query?

Thanks.

B.R.

Accepted Solutions (0)

Answers (2)

Answers (2)

appel_solar_dk
Active Participant
0 Kudos

Hi

SUMCT is a good solution as long as you are in the Bex world but if you use eg Webi it will not work. An alternative is to use constant selection. Create a new KF restricted as "Key Figure" drag in Document number as restriction right click and choose constant selection. Remark that this solution is slower than SUMCT as the data base will have to run a second set of queries.

With kind regards

Kristian

k_chandra1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Check the SUMCT function in Bex tools.

Reference Link : https://blogs.sap.com/2013/10/04/data-functions-in-bex-query-designer/

Thanks,

Chandra