what i am doing seems simple enough but not able to get a value displayed.
i have a table with sales, salesdate(this is a normal date field with month day and year)
their is one record for each day.
i want to show in a table objecty , current day and previous day sales and of course Diff and % Diff.
the relative period calculation seems that it would allow me to create a new measure for yesterdays sales.
simply....
RelativePeriod(_Sum_, 'sales'n, 'salesdate'n, _Inferred_, -1, _Full_, {Date})
cannot get any value to display.
thanks for your help
i submitted a bug request.
sas does not call this a bug even tho the documentation states it works.
they call it a feature request.
sas support has put my name in as a requestor of the feature.
problem not resolved but in the queue.
from everything i read and have seen, this should work, but doesnt.
noone seems to be able to resolve the issue or maybe noone needs yesterdays measures.
the documentation states quite plainly what this feature does, how to code it and what it displays.
i will report as a bug to sas support.
i submitted a bug request.
sas does not call this a bug even tho the documentation states it works.
they call it a feature request.
sas support has put my name in as a requestor of the feature.
problem not resolved but in the queue.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.