BookmarkSubscribeRSS Feed
moirafascioli
Calcite | Level 5

Hi everybody,

I want to use the Difference from previous parallel period, calculation available on Visual Analytics.

I tried with the _ToDate_ parameter, inserting manually a date, in the screen you can see I put 08MAY2023 and it works fine.

 

But I have to insert a dynamic date, in particular I've to put the max date of my calendar date dimension (calendar_day_date) of the table I am analyzing.

 

Is it possibile to do that?

How can I do?

 

This is the code:

 

ParallelPeriod(_Sum_, 'net_sales_euro'n,_IgnoreAllTimeFrameFilters_, 'calendar_day_date'n, _Inferred_,_Inferred_, 0, _ToDate_, '8MAY2023'd) - ParallelPeriod(_Sum_,'net_sales_euro'n, _IgnoreAllTimeFrameFilters_,'calendar_day_date'n, _Inferred_, _Inferred_, -1, _ToDate_,'8MAY2023'd)

parallel period - VISUAL ANALYTICS.png

 

 

 

1 REPLY 1
sbxkoenk
SAS Super FREQ

Hello @moirafascioli ,

I have moved your post to the "SAS Visual Analytics"-board.

Koen

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 1 reply
  • 576 views
  • 0 likes
  • 2 in conversation