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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression filter dimension

Hi, friends.

I have an expression...

(Rangesum(above(total Sum({$<[Séria]={Účtovníctvo}>}Čiastka),0,RowNo(total))))/(Rangesum(above(total Sum({$<[Séria]={Plán}>}Čiastka),0,RowNo(total))))

... which works correctly and I need to add a filter for dimension Obdobie <= UZAVRENEOBDOBI, where UZAVRENEOBDOBI is a dimesion. Both of dimensions OBDOBI and UZAVRENEOBDOBI have format Date, UZAVRENEOBDOBI has one record with value 1.5.2014 0:00:00.

I tried:

(Rangesum(above(total Sum({$<[Séria]={Účtovníctvo},[Obdobie]<={max(UZAVRENEOBDOBI)}>}Čiastka),0,RowNo(total))))/(Rangesum(above(total Sum({$<[Séria]={Plán},[Obdobie]<={max(UZAVRENEOBDOBI)}>}Čiastka),0,RowNo(total))))

or

(Rangesum(above(total Sum({$<[Séria]={Účtovníctvo},[Obdobie]={<=max(UZAVRENEOBDOBI)}>}Čiastka),0,RowNo(total))))/(Rangesum(above(total Sum({$<[Séria]={Plán},[Obdobie]={<=max(UZAVRENEOBDOBI)}>}Čiastka),0,RowNo(total))))

or

(Rangesum(above(total Sum({$<[Séria]={Účtovníctvo},[Obdobie]={'<=max(UZAVRENEOBDOBI)'}>}Čiastka),0,RowNo(total))))/(Rangesum(above(total Sum({$<[Séria]={Plán},[Obdobie]={'<=max(UZAVRENEOBDOBI)'}>}Čiastka),0,RowNo(total))))

No data.

Can you help me, pls. ?

Thanx in advance.

Duski

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

try with

[Obdobie]={'<=$(=max(UZAVRENEOBDOBI))'}

or

[Obdobie]={'<=$(#=max(UZAVRENEOBDOBI))'}

greeting

IB

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,

try with

[Obdobie]={'<=$(=max(UZAVRENEOBDOBI))'}

or

[Obdobie]={'<=$(#=max(UZAVRENEOBDOBI))'}

greeting

IB

Not applicable
Author

Thank you, Irene.

No data for both formulas :-(.

Maybe the problem is date format ?

Snap_2014.07.11 13.58.01_003.jpg

Thanx in advance

Duski

Edit1:

I tried also:

(Rangesum(above(total Sum({$<[Séria]={Účtovníctvo},[Obdobie]={'<=$(=max(date(UZAVRENEOBDOBI)))'}>}Čiastka),0,RowNo(total))))/(Rangesum(above(total Sum({$<[Séria]={Plán},[Obdobie]={'<=$(=max(date(UZAVRENEOBDOBI)))'}>}Čiastka),0,RowNo(total))))

or

(Rangesum(above(total Sum({$<[Séria]={Účtovníctvo},[Obdobie]={'<=$(#=max(date(UZAVRENEOBDOBI)))'}>}Čiastka),0,RowNo(total))))/(Rangesum(above(total Sum({$<[Séria]={Plán},[Obdobie]={'<=$(#=max(date(UZAVRENEOBDOBI)))'}>}Čiastka),0,RowNo(total))))

No data 😞

Duski

Edit2:

After restart of machine and QV I noticed, that the first formula works 🙂

Thank you once more, Irene.

Over.

Duski