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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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