Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ziabobaz
Creator III
Creator III

reference to dimension itself in set analysis

hi!

i have FUNNEL2 dimension, which is dual:

Funnel2NUM(Funnel2)amount
ready1100
steady280
go350

Is there way to write something like this is set analysis:

amount_previous = SUM (  {<Funnel2={< " $( =num(Funnel2)-1 ) " >} >}   amount).

Funnel2amount_previous
ready-
steady100
go80

alternatively, i can create Funnel2_previous dimension in the script. Can I use it like this?

amount_previous = SUM (  {<Funnel2={< " $( =text(Funnel2_previous))" >} >}   amount).

Thank you!

14 Replies
agigliotti
Partner - Champion
Partner - Champion

let's try replacing set analysis with if condition as below:

amount_previous = SUM(  if( Funnel2 = above(Funnel2), amount, 0 )

ziabobaz
Creator III
Creator III
Author

it will never be true by definition

it does not work

agigliotti
Partner - Champion
Partner - Champion

what should means : status = {<"$(above(status))"} in your set analysis ?

rangam_s
Creator II
Creator II

you can use above (Complete expression) right for this scenario, either way you will get same output.