Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi - I have a field [Date_Added] that is formatted as: MM/DD/YYYY
I need to create a set analysis getting the count of Distinct %EmpIDKey of users with a MM <= month(today()) and YYYY <= year(today())
Essentially this logic, but converted into a set analysis:
=if(Right([Date Added - Security], 4) <= year(today()),
if(Left([Date Added - Security], 2) < month(today()),
[Date Added - Security]))
You cold rewrite as ff;
=Count(DISTINCT {$<[[Date Added - Security] = {"<= $(=Date(MonthEnd(Today()), 'MM/DD/YYYY'))"}>} %EmpIDKey)
It sounds like you're trying to replicate https://help.qlik.com/en-US/sense/February2024/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...
If you can add a field in script, adding that as a flag would be much easier and cleaner than dealing with it on the front end.
Hi @GraysonStack,
Two quick tips:
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com