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

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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