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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
RvS
Contributor
Contributor

Qlik sense set analyses with multi date fields

Hai to all, i'm Ronald from the nederlands

Date and set analyses - its a disaster - so is the English language while being a dyslect:-)

=Sum({$<Jaar={$(vSelYear)},Logic4_KlantDatFlag={1},[Datum] = {">=Min(Date#([L4_BeginDate],'DD-MM-YYYY'))<=Max([L4_EndDate])"}>}[#Omzet])

Datum is a field in a Fact table and a dim master calendar (Date)
L4_BeginDate and L4_EndDate are fields in Dim table with customer numbers and begin and end dates 

Sum only when Datum >= Logic4_BeginDate

It does not work:-(

Hope someone knows:-)

 

 

Labels (2)
1 Solution

Accepted Solutions
RvS
Contributor
Contributor
Author

Thanx Ruben, unfortunately it does not work.. and yes i hoped it would work for the whole dataset.
i better put a flag in the Fact table for counting or not.

View solution in original post

2 Replies
rubenmarin1

Hi, syntax might be:

=Sum({$<Jaar={$(vSelYear)},Logic4_KlantDatFlag={1},[Datum] = {">=$(=Min(Date#([L4_BeginDate],'DD-MM-YYYY')))<=$(=Max([L4_EndDate]))"}>}[#Omzet])

I'm not sure what are you trying but note that set analysis is calculated for the whole dataset, not row by row, so dates filtered will be the same for all customers, not one by one.

RvS
Contributor
Contributor
Author

Thanx Ruben, unfortunately it does not work.. and yes i hoped it would work for the whole dataset.
i better put a flag in the Fact table for counting or not.