BookmarkSubscribeRSS Feed
LukeL
Obsidian | Level 7

Hi all.

I have a simple question for you Smiley LOL

We would need to create a percentile measure in an olap cube. As far as know, the measure is not available as a predefined aggregation, but...is there a way to obtain it, maybe via mdx or via information map? The problem is that this kind of measures, as a nunique, would rely on all the original dataset, and cannot be preaggregate...

I have tried by making a calculated mesure by making a key dimension for each row, and calculating the measure as

pctl5(90, SetToList({[KeyDimension].CurrentMember.Children},[Measures].[MeasureToUse])),

where measure to use use a mean aggregate function (but going to keyDimension I would have the mean of every single value, so the value itself).

but the response is:

Insufficient memory - in the "CHILDREN" function

 

Has anyone any feasible solution?

 

Thanks! 🙂

1 REPLY 1
AnnaBrown
Community Manager

Hi LukeL,

 

You might want to open a track with Technical Support for that “insufficient memory” message. There may be some options or a different syntax that might work for this exercise.

 

Best,

Anna

 

 


Join us for SAS Community Trivia
SAS Bowl XXIX, The SAS Hackathon
Wednesday, March 8, 2023, at 10 AM ET | #SASBowl

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
  • 1 reply
  • 861 views
  • 0 likes
  • 2 in conversation