BookmarkSubscribeRSS Feed
Calcite | Level 5



Does anyone know how to create an early warning indicator in the data when it compares last month to this month?


Also is it possible to add plan figures in a dashboard to show how actual sales compare to planned sales?






Hello Reanesh,


You should be able to create an aggregated measure using the RelativePeriod operator to get the difference between each month. You can then set up a display rule to highlight the data where the monthly difference meets your criteria.


For comparing actual values to target values, VA has a variety of gauges to visualize this:


I'm not sure if that answers your second question, however. I'm not sure what you mean by adding plan figures.



Calcite | Level 5

Hi Sam,


Thanks for this and I can see how to use a relaive period operator now.


Is there a way to show for example each month backwards:


June compared to May

May compared to April

April compared to March


What I meant regarding plan, is we have a plan target sales to hit. I need to find a way of inlcuding this in an overall table as my dataset currently only has sales data, so the final display will show:


Jan-16 Plan Sales

Jan-16 Actual Sales


And so on for each month.


Thanks for your kind help in advance.





To get the monthly difference, you would use an expression something like this:



(RelativePeriod(_Sum_, 'Sales'n, 'Date'n, _ByMonth_, 0, _Full_))
(RelativePeriod(_Sum_, 'Sales'n, 'Date'n, _ByMonth_, -1, _Full_))

So for May, the aggregated value is the sales for May minus the sales for April. For April the value is the sales for April minus the sales for March. And so on.


I am still not sure I understand about adding the target sales values. If you add a "target sales" column to your dataset, then visualizing that in your report is easy. But did you want to create this column within the Visual Analytics report designer? You could make a calculated column if the target sales are based on a formula like Sales * 1.05 if you wanted to target 5% growth or something simple like that.

Calcite | Level 5

Hi Sam,


Thank you for your response that has really helped.


Regarding the plan hopefully this might help:


I have a dataset full of sold policies split by various factors and these can be grouped to show how many were sold by each week or month.

I also have a separate dataset that has what we planned as a target sales for the last 12 months, and what I want to show on one graph and one table is how actual sales compared to target sales. So it is not a multiplier but an actual figure in this dataset.





Hi Reanesh,

Thanks for the additional details. Data management is not my field, but I believe that you will want to join the target data set into your data set that contains the actual sales figures.

You can do this in the data builder component of Visual Analytics if you have the correct permissions.

This chapter in the documentation should help:
Obsidian | Level 7

Hi Ramesh,


I have two files( current month and previous month data) loaded in lasr and I need to compare one field difference( ECL value difference) between them and show as a SAS VA report. Could you please confirm that I use them directl as seperate dataset and generate this report without combining them.?



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 6 replies
  • 3 in conversation