Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
satishqlik
Creator II
Creator II

set analysis

Hello experts,

How to get next 5 years data, If I select 2010 in the year field

exp:Sum({<year={">2010<=2015"}>}sales)

By using set analysis how can we approach dynamically.?

I tried below exp like

Sum({<year={>$(=only(year))<=$(only(year)+5)}>}sales)

But it hasn't worked.

I would appreciate if anyone can help me out in this.

Thanks in adv!!

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

Try like this

sum({<year = {'>=$(=GetFieldSelections(year))<=$(=GetFieldSelections(year)+5)'} >}sales)

Regards,

Greeshma

View solution in original post

5 Replies
Anonymous
Not applicable

Hi,

Try like this

sum({<year = {'>=$(=GetFieldSelections(year))<=$(=GetFieldSelections(year)+5)'} >}sales)

Regards,

Greeshma

satishqlik
Creator II
Creator II
Author

Thanks for answering I'll try and get back to you!

Agis-Kalogiannis
Employee
Employee

Hi Satish

the reason why your expression does not work is because of some missing quotes.

Try the following:

Sum({<year={'>$(=only(year))<=$(only(year)+5)'}>}sales)


Also please note that year and sales are case sensitive.


Thanks

Agis

Anonymous
Not applicable

hi Satish, if your query is solved please close the thread by tagging it as correct answer. So that way someone can either learn from your question.

prabhas277
Creator
Creator

Hi satish,

please try this then it will come..

=sum({<year={">=$(=Min(year))<=$(=Min(year)+4)"}>}popu)

all fields are case sensitive check it properly

if it will helpful then give the correct answer

Regards,

check it.png