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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
tomcatxx
Creator
Creator

Set analysis muti contions

Hi, there. Can you help me to correct that expression? Thank you.

ex.PNG

Conditions: Today()-8 <= %Datum < Today()  and  H.NAME1 = 'AA'

Measure: OK

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

Perhaps this?

Count({<%Datum = {">=$(=Date(Today()-7))<$(=Date(Today()))"}, H.NAME1 = {'AA'} >} OK)

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

2 Replies
Anil_Babu_Samineni
MVP
MVP

Perhaps this?

Count({<%Datum = {">=$(=Date(Today()-7))<$(=Date(Today()))"}, H.NAME1 = {'AA'} >} OK)

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
neelamsaroha157
Specialist II
Specialist II

Count({<%Date ={">=$(vMinDate)<=$(vMaxDate)"},H.NAME1 = {'AA'}>}OK)

Create 2 variables as

vMinDate = Date(Today()-7)

vMaxDate = Date(Today())