Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
BouwerVa
Contributor II
Contributor II

Set Analysis & Alternate State

Hi

I'm stuck. I have a pivot table with an Alternate State Assigned to it (As Seen Below).

Capture.PNGI need to show the Current Year Amount which is correct and next to it the growth of from the previous year. But with my Set Analysis that I used is still returns the Current Year Value.

sum({<tYEAR= (tYEAR - {1})>} C_TOTAL)

Not sure what I'm doing wrong.

Labels (2)
4 Replies
Seyko
Partner - Creator
Partner - Creator

Hello,

Your set analysis syntax isn't correct, but you don't need it for your calculation. Into a pivot table, you can use  Before (follow this link to see more) to do that. Substitute your previous expression by this:

Before(Sum(C_TOTAL), 1)

cordially. 

Excuse my english, i'm french!
BouwerVa
Contributor II
Contributor II
Author

WHAT!!!! That Easy!!!

You are awesome. 

Thank you very much.

Seyko
Partner - Creator
Partner - Creator

Yu're welcome. Don't forget to cloturate your post as resolved 😀.

cordially.

Excuse my english, i'm french!
Sameer9585
Creator II
Creator II

Hi @BouwerVa ,

 

Try this as per my understanding this works

 

sum({<tYEAR= addyears(tYEAR,-1)>} C_TOTAL)