Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
apthansh
Creator
Creator

Sum of Total

Hi - I  have data as below..

 

Period        ID       Amount

p1                 1           100 

p1                2            500

p2                1             800

p2                2              100

 

I want to get the sum of Total amount by each period and the get the %.

Ex: For P1 ID 1 Should divide 100/600 and P2  ID1 should divide 800/900.

Any help/guide is highly appreciated.Thank you.

 

 

 

Labels (5)
1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Total by period is:

Sum(TOTAL <Period> Amount)

So, the % is

Sum(Amount) / Sum(TOTAL <Period> Amount)

formatted as %

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
apthansh
Creator
Creator
Author

I am trying to achieve Sum of Total Column  and % of amt column from the below example.

PeriodIDAmountSun Of Total% of amt to total
p1110060016.00%
p2180090088%
p1250060083%
p2210090011%

 

jonathandienst
Partner - Champion III
Partner - Champion III

Total by period is:

Sum(TOTAL <Period> Amount)

So, the % is

Sum(Amount) / Sum(TOTAL <Period> Amount)

formatted as %

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
apthansh
Creator
Creator
Author

Awesome.Thank you much !