
Contributor II
2020-10-17
09:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Accumulation in Pivot Table
Hi all,
I need to calculate YTD value in the pivot table with 3 dimensions, as below. I cant able to write an expression for this. anybody, please help me. Thanks in advance.
D1 | D2 | D3 | A | B | D | E | (A/B) / (D/E) | YTD |
2011 | India | Delhi | 100 | 2 | 50 | 2 | 2 | 2 |
2011 | Pak | Karachi | 200 | 5 | 100 | 10 | 4 | 4 |
2012 | India | Delhi | 300 | 3 | 200 | 4 | 2 | 4 |
2012 | Pak | Karachi | 400 | 4 | 150 | 3 | 2 | 6 |
2013 | India | Delhi | 500 | 2 | 250 | 5 | 5 | 9 |
2013 | Pak | Karachi | 600 | 3 | 300 | 3 | 2 | 8 |
903 Views
5 Replies

MVP
2020-10-17
09:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Saro,
Try like below
RangeSum(
Aggr(
RangeSum(Above(Sum([(A/B) / (D/E)]), 0, RowNo())), D3, D2, D1))
Sample Output:
Hope it helps.
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Please close the thread by marking correct answer & give likes if you like the post.

Contributor II
2020-10-18
12:27 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Bro, Will it works for Calculated expression. Bcs in my case all A, B, D, E are calculated expressions.
837 Views

MVP
2020-10-18
09:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI Saro
Yes, it will work.
Replace A,B,D,E with your expressions
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Please close the thread by marking correct answer & give likes if you like the post.
815 Views

Contributor II
2020-10-19
11:43 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, Its not working all values showing "0"
799 Views

MVP
2020-10-20
03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Saro,
Can you please provide your sample file to proceed further
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Please close the thread by marking correct answer & give likes if you like the post.
783 Views
