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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Dimension=Dimension

How would i convert this to a set anlysis?

if(Receipt_Store = Return_Store, min(Receipts.DATE))



4 Replies
Not applicable
Author

min( {$<Receipt_Store = {'Return_Store'} >} Receipts.DATE )



jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Assuming that you are looking for the minimum Receipts.DATE when the Receipt_Store is the same as the Return_Store:

If type: Min(If(Receipt_Store = Return_Store, Receipts.DATE))

Set Anal: Min({<Receipt_Store=Return_Store>} Receipts.DATE)


Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

not sure why, but this returns null (-).

jonathandienst
Partner - Champion III
Partner - Champion III

To clarify

Min({<Receipt_Store=Return_Store>} Receipts.DATE)

Matches the value of field Receipt_Store with the value of field Return_Store

Min({<Receipt_Store={'Return_Store'}>} Receipts.DATE)

Matches the value of field Receipt_Store with the literal text 'Return_Store'.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein