Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
Hi,
did not get your logic..
try like
count( {<start={"$(= '<=' & '$(date_stock)' )"},state=>*<end={"$(= '>=' & '$(date_stock)' )"},state=>} distinct policies)
Hi,
If you want to nullify selection then add
state=
in your set analysis.
Kind Regards
try like this
count({<State=> }policies)
it doesn't work :
like this ?
=count( {<State=>*<start={"$(= '<=' & '$(date_stock)' )"}>*<end={"$(= '>=' & '$(date_stock)' )"}>} distinct policies)
If(Dimensionality()=0,COUNT({<state>}TOTAL policies), COUNT(policies))
like this
count( {<start={"$(= '<=' & '$(date_stock)' )"}, State=>*<end={"$(= '>=' & '$(date_stock)' )"}>} distinct policies)
or
count( {<start={"$(= '<=' & '$(date_stock)' )"}, State=>*<end={"$(= '>=' & '$(date_stock)' )"},State=>} distinct policies)
Hi,
did not get your logic..
try like
count( {<start={"$(= '<=' & '$(date_stock)' )"},state=>*<end={"$(= '>=' & '$(date_stock)' )"},state=>} distinct policies)
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.
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
Thanks to all of you,
this one works perfect
++