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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
maxime66
Creator
Creator

Set analysis - one field non sensitive

Hi Qlikers,

i would like to count policies at specific dates.

For instance (Qvw attached) i would like to count the number of policies at 31/12/2015 ( = 3)

My constraint is that i have to filter the "State" field on "Active" in the all sheet , and my number becomes ( = 2)

i just want to neutralize this field in my set Analysis (and just this one)

Thx four your help.

1 Solution

Accepted Solutions
PrashantSangle

Hi,

did not get your logic..

try like

count( {<start={"$(= '<=' & '$(date_stock)' )"},state=>*<end={"$(= '>=' & '$(date_stock)' )"},state=>} distinct policies)

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

9 Replies
PrashantSangle

Hi,

If you want to nullify selection then add

state=

in your set analysis.

Kind Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
avinashelite

try like this

count({<State=> }policies)

maxime66
Creator
Creator
Author

it doesn't work :

like this ?

=count( {<State=>*<start={"$(= '<=' & '$(date_stock)' )"}>*<end={"$(= '>=' & '$(date_stock)' )"}>} distinct policies)

MK_QSL
MVP
MVP

If(Dimensionality()=0,COUNT({<state>}TOTAL policies), COUNT(policies))

avinashelite

like this

count( {<start={"$(= '<=' & '$(date_stock)' )"}, State=>*<end={"$(= '>=' & '$(date_stock)' )"}>} distinct policies)


or


count( {<start={"$(= '<=' & '$(date_stock)' )"}, State=>*<end={"$(= '>=' & '$(date_stock)' )"},State=>} distinct policies)

PrashantSangle

Hi,

did not get your logic..

try like

count( {<start={"$(= '<=' & '$(date_stock)' )"},state=>*<end={"$(= '>=' & '$(date_stock)' )"},state=>} distinct policies)

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this as expressions

count =count({<state=>}policies)

Count_stock_at_date=count( {<state=, start={"$(= '<=' & '$(date_stock)' )"}>*<state=, end={"$(= '>=' & '$(date_stock)' )"}>} distinct policies)

This (state=) will ignore the selections in that field.

Regards,

Jagan.

avinashelite

Why your using the * (intersection)?? is that the requirement ??


if not the case you could try like this


count( {<State=,start={"$(= '<=' & '$(date_stock)' )"}, end={"$(= '>=' & '$(date_stock)' )"}>} distinct policies)


make sure the dates are all in the correct format

maxime66
Creator
Creator
Author

Thanks to all of you,

this one works perfect

++