Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Percent to Total in QS

How do you do a % to total in QS?  I know it was very easy in QV.  Thanks

 

Here's the calculation I'm using.

(Sum({<YTDFlag = {1}>} Amount) * -1 / Sum ({<[Reference Transact._AWTYP] = {'BKPF'}, YTDFlag = {1}>}Quantity_MSL)) /
Sum({<YTDFlag = {1}>} total <FISYR> Amount) * -1 / Sum ({<[Reference Transact._AWTYP] = {'BKPF'}, YTDFlag = {1}>} total <FISYR> Quantity_MSL)

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, the total clause works the same way it was on QV. Have you found any isssue using it?

Maybe you need some extra parenthesys:

(Sum({<YTDFlag = {1}>} Amount) * -1 / Sum ({<[Reference Transact._AWTYP] = {'BKPF'}, YTDFlag = {1}>}Quantity_MSL)) /
(Sum({<YTDFlag = {1}>} total <FISYR> Amount) * -1 / Sum ({<[Reference Transact._AWTYP] = {'BKPF'}, YTDFlag = {1}>} total <FISYR> Quantity_MSL))

View solution in original post

2 Replies
rubenmarin

Hi, the total clause works the same way it was on QV. Have you found any isssue using it?

Maybe you need some extra parenthesys:

(Sum({<YTDFlag = {1}>} Amount) * -1 / Sum ({<[Reference Transact._AWTYP] = {'BKPF'}, YTDFlag = {1}>}Quantity_MSL)) /
(Sum({<YTDFlag = {1}>} total <FISYR> Amount) * -1 / Sum ({<[Reference Transact._AWTYP] = {'BKPF'}, YTDFlag = {1}>} total <FISYR> Quantity_MSL))

Vikash
Contributor III
Contributor III

Hi,

You can do it by selecting the number formatting options as Number and selecting the Formatting as 12.34% from the drop-down lists. See below-

Vikash_0-1622952683415.png

VK