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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
gauravgg
Partner - Creator
Partner - Creator

Convert to set analysis

Hi

I want to convert the following expression in to set analysis

Sum(If( Aggr(nodistinct Min(Datetime), BusinessID) = Datetime, OpeningBalance))

Labels (1)
15 Replies
Anil_Babu_Samineni
MVP
MVP

It won't work for you. Try with jontydkpi or else

stalwar1‌ mrkachhiaimp‌ marcowedel‌

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 this:

Sum({<BusinessID = {"=Min(TOTAL Datetime) = Datetime"}>} OpeningBalance)

gauravgg
Partner - Creator
Partner - Creator
Author

HI

sunny ,it is not working

sunny_talwar
MVP
MVP

Would you be able to provide a sample?

MK_QSL
MVP
MVP

Don't know how to convert this in set analysis but you can use below as well..

=FirstSortedValue(DISTINCT Aggr(SUM(OpeningBalance),BusinessID,Datetime),Datetime)


instead of this

Sum(If( Aggr(nodistinct Min(Datetime), BusinessID) = Datetime, OpeningBalance))

MarcoWedel
MVP
MVP

please post some sample data to test with as well as your expected result.

thanks

regards

Marco