Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated dimension

It is even possible to use the value of the Calculated dimension in expression

For example:

Calculated dimension- Aggr(Sum(Stock),Date)

Expression- Count(distinct  if(Sum(Sales)>'Calculated dimension',Date))

10 Replies
swuehl
MVP
MVP

You should be able to just use sum(Stock) instead of 'Calculated dimension' here. But since you embed an aggregation (sum()) into another aggregation function, you'll need to use advanced aggregation aggr() function here, too.

Or try:

=count({<Date = {"=sum(Sales)>sum(Stock)"}>} distinct Date)

Not applicable
Author

I do not care what happens in the expression and Calculated dimension,  I'm interested in the possibility of using the value of the Calculated dimension In expression

Calculated dimension=2

Expression= if(Calculated dimension=2,"two",null())

swuehl
MVP
MVP

And replacing your 'Calculated dimension' with the expression you are using in the aggr() function should / could work fine.

edit:

Ok, this only works if you only get one distinct underlying dimension value, back (i.e. Date in your sample). In general, you need to repeat the complete calculated dimension.

Not applicable
Author

I can not

formula will work correctly only in Calculated dimension

swuehl
MVP
MVP

Could you post a small sample app? Or your complete dimension and expression definitions?

Not applicable
Author

i can not

Not applicable
Author

I am interested in only one thing, is it possible to get the value of the Calculated dimension in expression

swuehl
MVP
MVP

If you have a calculated dimension like

=Aggr(Sum(Stock),Date)

an expression like

=Aggr(Sum(Stock),Date)

returns the dimension value. There is no function to "call" the calculated dimension value directly, AFAIR (edit: sorry, for the acronym,  http://en.wiktionary.org/wiki/AFAIR).

Not applicable
Author

not understood.

what is it afair?