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: 
nigel987
Creator II
Creator II

Identifier in Set Analysis

Hi, I am using following set analysis to count contracts:

='Contracts: ' & (Count({1<

  Status={'Active'},

  ContractEndDate={"=ContractEndDate>=Date(MonthsStart(1,Today(),1)) and  ContractEndDate<=Date(MonthsEnd(1,Today(),1))"}

  >}Distinct OrganisationID))

I want to ignore user-selections, therefore I used the identifier 1, but I think this does not work for the part:

ContractEndDate={"=ContractEndDate>=Date(MonthsStart(1,Today(),1)) and  ContractEndDate<=Date(MonthsEnd(1,Today(),1))"}


I tried to insert the identifier 1 into this part as well, but I couldn't get the syntax right.


Does anyone know how to write it correctly?


Thanks,

Nigel

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try

ContractEndDate={"=Only({1}ContractEndDate)>=Date(MonthsStart(1,Today(),1)) and  Only({1}ContractEndDate)<=Date(MonthsEnd(1,Today(),1))"}


edit:


or:

ContractEndDate={">=$(=Date(MonthsStart(1,Today(),1)))<=$(=Date(MonthsEnd(1,Today(),1)))"}

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Try

ContractEndDate={"=Only({1}ContractEndDate)>=Date(MonthsStart(1,Today(),1)) and  Only({1}ContractEndDate)<=Date(MonthsEnd(1,Today(),1))"}


edit:


or:

ContractEndDate={">=$(=Date(MonthsStart(1,Today(),1)))<=$(=Date(MonthsEnd(1,Today(),1)))"}

nigel987
Creator II
Creator II
Author

Great! That's it. Thanks for the reply swuehl!