Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

static max for cyclic group

hi there,

ı am trying to write static max for cyclic group,

My cyclic groups name is = Cyclic1

And ı have 3 dimensions in it dim1 , dim2, dim3

now I want to write an if statement in the static max box,

but it does not work when I write this (it does not recognize cyclic1)

=if(Cyclic1=dim1,100,50)

it does not work for some reason,

thanks for your helps!

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

=If(GetCurrentField([Cyclic1]) = 'dim1', 100, 50)

View solution in original post

9 Replies
Anil_Babu_Samineni
MVP
MVP

May be this

If(match(getcurrentfield(groupname), 'Cyclic1')=dim1, 100, 50)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar
MVP
MVP

May be try using GetCurrentField() function

GetCurrentField ‒ QlikView

sunny_talwar
MVP
MVP

Did you mean this Anil

=If(GetCurrentField([Cyclic1]) = 'dim1', 100, 50)

Anonymous
Not applicable
Author

ı tried but making some syntax error, ı need the whole sentence...

sunny_talwar
MVP
MVP

Try this

=If(GetCurrentField([Cyclic1]) = 'dim1', 100, 50)

Anil_Babu_Samineni
MVP
MVP

Yes, but perhaps this. Removed single quote

If(GetCurrentField([Cyclic1]) = dim1, 100, 50)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

thanks! it worked!

the error was lack of [ ] , thank you!

sunny_talwar
MVP
MVP

You def. need the single quotes around dim1....

Anil_Babu_Samineni
MVP
MVP

Yes, that's the drawback. But, it will work. May be team work further versions

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful