Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
naziralala
Creator
Creator

Set Analysis

Hi All,

I am getting an error as "error in set modifier ad hoc element list"

Can someone help me with what is possibly wrong..

=Num(Sum({<Year ={$(V_Year)}>} [Net Sales]),'#,##0')

I have defined V_Year as a variable with defn Max(Year)

The below is not giving error but displays a zero for previous year

=Num(Sum({<Year ={$(V_Year-1)}>} [Net Sales]),'#,##0')

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Define  Variable  v_Year  as

=Max(Year)

View solution in original post

6 Replies
swuehl
MVP
MVP

What do you get when you create a text box with Text:

=V_Year

satishkurra
Specialist II
Specialist II

Modify as below and give a try

=Num(Sum({<Year ={$(=(V_Year)-1)}>} [Net Sales]),'#,##0')

antoniotiman
Master III
Master III

Define  Variable  v_Year  as

=Max(Year)

naziralala
Creator
Creator
Author

This is displaying a 0

On Sat, Jun 13, 2015 at 1:13 PM, Satish Kurra <qcwebmaster@qlikview.com>

naziralala
Creator
Creator
Author

This is displaying correct value

naziralala
Creator
Creator
Author

Thanks.

I had to put the =Sign.

It resolves my problem.

On Sat, Jun 13, 2015 at 1:22 PM, ANTONIO MANCINI <qcwebmaster@qlikview.com>