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



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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