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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 881 views
  • 0 likes
  • 3 in conversation