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

Innovate_SAS_Blue.png

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!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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