BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
How do you deal with non-comulatives in an IM with a relational source?
3 REPLIES 3
Madelyn_SAS
SAS Super FREQ
Can you be more specific?
jplarios
Quartz | Level 8
BIC_USER_3,
For example semi-additive summations. Kind of like a 'sum if' . Assuming my relation source has an architecture based on having all measures in a Fact table referencing dimension tables ( a dimensional approach).
One of this dimensions could be, say , time. Account balances and inventory levels are examples where you don't want to sum across all dimensions. For inventory levels, I would not want to average across all the dimensions. Having a function that restricts the measure would help.

This is easily done with an OLAP cube since it uses MDX. With a relational source, I would use SQL.
jplarios
Quartz | Level 8
Another example,
if a have 6 account balances that I select along with four periods how can I do an average , with a relational source, such that it would divide my results by the period cardinality of 4 instead of multiplying 4 * 6 ?
Again, I can see how an OLAP cube can achieve this via a calculated member but I can't figure it out in a relational source.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 765 views
  • 0 likes
  • 2 in conversation