BookmarkSubscribeRSS Feed
Genesis007
Obsidian | Level 7

Hi everybody,

I've got some problems in SAS VIYA when I use ParallelPeriod function.

As you can see on the example below :

Genesis007_0-1671783569981.png

 

I've a column with annual sales, and I would like to have a column with the annual figure of the previous years, in order to be able to measure the progression of the turnover (column N-1 et N-2).

N-1 :

Genesis007_1-1671783569959.png

 

N-2.

Genesis007_2-1671783569959.png

 

 

 


As you can see, in the cells coloured in green everything is OK.
But it's NOK ine the Red cells.
I think the problem is linked to the missing values (in the blue coloured cells). As soon as a missing value is present in the line, the parallelperiod result is wrong.

I've tried to replace the missing values with this formula  :

Genesis007_3-1671783569963.png

 

 

But I can't use it, in the ParallelPeriod function because I can't nest two aggregation formulas.

If you have some tips to help me you're welcome

Genesis007_4-1671783569767.png

 



Thanks in advance,

Michel.

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 500 views
  • 0 likes
  • 1 in conversation