Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis question

Hi ,I am stuck with a set analysis syntax

Now there is a field Daynumber which has data as

1

2

3

.

.

30

and there is a field named ComFlag which has Y and N as values

Now i want to select the max day number which has flag set to Y,

I am trying to do something like

=Max( { <[ComFlag]='Y'>} Daynumber)

But I am getting an error,any idea why ?

thanks for your help

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

try this

=Max( { <[ComFlag]={'Y'}>} Daynumber)

View solution in original post

8 Replies
Anonymous
Not applicable
Author

try this

=Max( { <[ComFlag]={'Y'}>} Daynumber)

Anonymous
Not applicable
Author

Max( { <[ComFlag]={'Y'}>} Daynumber)  .. curly braces is missing in your syntaxx

Not applicable
Author

TY...

Not applicable
Author

TY

Not applicable
Author

If i have an expression (Actuals/Total)*Forecast and i want to use the date 10 days after the above date.any idea how to modify the equation??

Anonymous
Not applicable
Author

cna you post the qvw file with some sample data i can be able to help you .

Not applicable
Author

I got it i used =max({<Day_number_in_month={$(=Max( { <[Completed]={'Y'}>} Daynumber) + 10)}>}((Actuals/Total)*Forecast))

Anonymous
Not applicable
Author

glad you got it.. Sorry tied up with work. i could not get to you...