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: 
smilingjohn
Specialist
Specialist

Code

HI All ,

Can some one explain what the beow expression is doing    ?

=Alt(Count({$<

  DueDate= {">=$(vDD11MonthBack)<=$(vDueEndDate)"}

  >}

  [Log User]),0)

Thanks

1 Solution

Accepted Solutions
Anil_Babu_Samineni

What are these vDD11MonthBack & vDueEndDate

Explanation:-

This expression getting the Count of [Log User] where DueDate >=  vDD11MonthBack and vDueEndDate {Here, It counts the value of [Log User] in between of today and yesterdays date for current selection}

Assume

1) vDD11MonthBack = Today()-1

2) vDueEndDate = Today()

Count({$<  DueDate= {">=$(vDD11MonthBack)<=$(vDueEndDate)"} >}  [Log User])

---

=Alt(Count({$<

  DueDate= {">=$(vDD11MonthBack)<=$(vDueEndDate)"}

  >}

  [Log User]),0)

Finally, if this condition works fine it gives the count or else 0.

Hope this make helpful

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

View solution in original post

1 Reply
Anil_Babu_Samineni

What are these vDD11MonthBack & vDueEndDate

Explanation:-

This expression getting the Count of [Log User] where DueDate >=  vDD11MonthBack and vDueEndDate {Here, It counts the value of [Log User] in between of today and yesterdays date for current selection}

Assume

1) vDD11MonthBack = Today()-1

2) vDueEndDate = Today()

Count({$<  DueDate= {">=$(vDD11MonthBack)<=$(vDueEndDate)"} >}  [Log User])

---

=Alt(Count({$<

  DueDate= {">=$(vDD11MonthBack)<=$(vDueEndDate)"}

  >}

  [Log User]),0)

Finally, if this condition works fine it gives the count or else 0.

Hope this make helpful

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