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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 732 views
  • 0 likes
  • 2 in conversation