Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have data as below
ID Date
1
2 1/26/2016
3
4 3/24/2016
5 4/25/2016
Trying to get 2 countS of ID's,one with no dates and one with dates.
1.Count(if(len(Date)) >0,Date)
2.Count(if(len(Date)) =0,Date)
1 st one is giving me Count = 5 and the other one is giving me 0 count.
Thanks.
Try this if you're just looking for an overall count
=count(if(len(Date) >0,1))
=count(if(len(Date) <1,1))
Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.
Correction..below is my expression.
1.Count(if(len(Date)) >0,ID)
2.Count(if(len(Date)) =0,ID)
Try this if you're just looking for an overall count
=count(if(len(Date) >0,1))
=count(if(len(Date) <1,1))
Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.
Thank you .But the second expression is giving me 0 count.
It sounds to me like it isn't blank....
I would drop them in a table chart with len(Date) as an expression and see!
You could try a quick: Count(if(len(trim(Date))) =0,Date)
Hi Pavana,
For ID with dates:
=count({$<Date = {'*'}>}ID)
For ID with no dates
=count({$-$<Date = {'*'}>}ID)
Cheers
Andrew
You are right...even though date is blank in the file the len(Date) is 1 !!
How can I write this in set analysis ?
We'll need a bit more information to go on to advise I am afraid!
What is the formula you're trying to write?
Another solution using set analysis.
=Count({<Date={"=Len(Trim(Date))>0"}>} Date)
=Count({<Date={"=Len(Trim(Date))=0"}>} Date)