Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
warrentk80
Creator
Creator

Variable use in September analysis.

Goodmorning everyone


I need to use in the comparison of a setanalisys a formula, a variable rather than a fixed value.


I'll explain :
currently I use the formula that is:


num = (sum ({1 <[Flg Activity Type] = {'F'}, [Series] = {'20150930'}>} [Budget in ] / 1000000), '### 0,0')


I, however, more serious so instead set the value 20150930 I would insert a variable seriemax that I set as MAX (Series)
I tried using the syntax
num = (sum ({1 <[Flg Activity Type] = {'F'}, [Series] = {} = SerieMax>} [Budget in ] / 1000000), '### 0,0')
but the formula returns error.


can you help me?


Thank you


Andrea

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe

(sum ({1 <[Flg Activity Type] = {'F'}, [Series] = {'$(=Maxstring([Series]))'} >} [Budget in ] / 1000000), '### 0,0')

or if you already have a correctly formatted variable

(sum ({1 <[Flg Activity Type] = {'F'}, [Series] = {'$(SerieMax)'} >} [Budget in ] / 1000000), '### 0,0')

View solution in original post

1 Reply
swuehl
MVP
MVP

Maybe

(sum ({1 <[Flg Activity Type] = {'F'}, [Series] = {'$(=Maxstring([Series]))'} >} [Budget in ] / 1000000), '### 0,0')

or if you already have a correctly formatted variable

(sum ({1 <[Flg Activity Type] = {'F'}, [Series] = {'$(SerieMax)'} >} [Budget in ] / 1000000), '### 0,0')