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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SNarendran
Contributor
Contributor

Set Analysis - >= of a String Value

Hi,

 

I have a yearmonth field in my script.

It reads like 2017-01.

I want my set analysis expression to give me a count of values from another field when the yearmonth field is >= '2017-01'.

 

What will my set analysis expression be?

COUNT({<YearMonth_Created ={">= Date#(2017-01)"} >} NL_MLS) doesn't work

 

15 Replies
Taoufiq_Zarra

Hi,

I suggest you create a field from the [YearMonth_Created] field in the load script:

Date(Date#(YearMonth_Created,'YYYYY-MM')) as New_YearMonth_Created,

then uses this field in set analysis

=COUNT({<New_YearMonth_Created ={">= Date(Date#('2017-01','YYYY-MM'))"} >} NL_MLS) 

 

Cheers,

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
SNarendran
Contributor
Contributor
Author

Thank you 

manoranjan_d
Specialist
Specialist

Pls accept the solution and close the post as solved 

SNarendran
Contributor
Contributor
Author

Doesn't work unfortunately

Taoufiq_Zarra

can you share a sample of your data?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
SNarendran
Contributor
Contributor
Author

Attached. I want to be able to show:

A count of MLS and newMLS From the beginning of my Solddate.

 

Thanks

Shashank

 

SNarendran
Contributor
Contributor
Author

Dimension has to be CreateDate

Taoufiq_Zarra

if I have understood correctly , both formulas are attached
I don't know if that's the output you want.

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
SNarendran
Contributor
Contributor
Author

Thanks. 

If you can create a straight table for me with the Created Date as the dimension and the count of NewMLS  as an expression?