BookmarkSubscribeRSS Feed
hestala
Calcite | Level 5

I want to built a olap cube where somme measures (like sales) are additive, while others (like price) are not. any suggestions?

 

I am not sure i am in the right place here...

4 REPLIES 4
TomKari
Onyx | Level 15

Do you want the non-additive measures to be available at higher aggregation levels? If so, where are you going to get them from?

 

Tom

christa
Calcite | Level 5

Hi Tom,

 

as a start I would be happy to have no values at higer levels.

 

Later on I could have a 'aggregate table'?

 

Christa

TomKari
Onyx | Level 15

I had to do something similar, but it was quite a few years ago and I no longer have access to SAS OLAP facilities. However, I had a pretty good idea of what I was looking for, so I found the following link. This paper jumps straight to the full solution, but if you just wanted no values you could create the tables using missing values for the measures.

 

It's somewhat complicated, but sadly this isn't an easy problem to solve!

 

Note that when I did it, I had one table with all of the values that I wanted, and I used a "where" to subset the rows in the AGGREGATION statement. Both work fine.

 

Best,

   Tom

 

https://www.mwsug.org/proceedings/2009/appdev/MWSUG-2009-A02.pdf

christa
Calcite | Level 5

Thank you. I will try this ...

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 connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 897 views
  • 0 likes
  • 3 in conversation