BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
How do you deal with non-comulatives in an IM with a relational source?
3 REPLIES 3
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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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