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

Referencing a column in set analysis

Dear all

I am facing a problem i have an expression which are given below having label 'Last date'

max({<Flag={'Disbursal'}>}Date

when ever i reference the column in other  expression which are given below

=Sum({<Flag={'Disbursal'},Date={'[Last date]'}>}AMOUNT)

it give me 0 rather than given me the amount of that date

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

The calculations are done at chart level, not by row by row.  So we cannot use the Expression name in the Set analysis, instead you can below expression

=Sum({<Flag={'Disbursal'},Date={'$(=Date(max({<Flag={"Disbursal"}>}Date)))'}>}AMOUNT)    


** If the above expression then check for the date format of Date column and =Date(max({<Flag={"Disbursal"}>}Date)), both should be in the same format.


Regards,

Jagan.

View solution in original post

4 Replies
linusblomberg
Creator II
Creator II

why don't enter the expression for [Last date] instead. I've never tried to reference a column in set analysis but I usually make variables for my expressions already in the load script and that will work for you.

Let vDisbursalLastDate = 'max({<Flag={'Disbursal'}>}Date)';

jagan
Partner - Champion III
Partner - Champion III

Hi,

The calculations are done at chart level, not by row by row.  So we cannot use the Expression name in the Set analysis, instead you can below expression

=Sum({<Flag={'Disbursal'},Date={'$(=Date(max({<Flag={"Disbursal"}>}Date)))'}>}AMOUNT)    


** If the above expression then check for the date format of Date column and =Date(max({<Flag={"Disbursal"}>}Date)), both should be in the same format.


Regards,

Jagan.

Not applicable
Author

Thanks its work

jagan
Partner - Champion III
Partner - Champion III

Hi,

If you got the answer please close this thread by giving Correct and Helpful answers to the useful posts.

Regards,

Jagan.