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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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
  • 245 views
  • 0 likes
  • 1 in conversation