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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Expression help

Hi,

I am trying to create a pivot table showing job details. I don't want to show any jobs with a JobFinishDate of xx/xx/xxxx 23:59:59 (X being the date)

here is an example..

Capture.JPG

Does anyone know how i can hide this value please?

I was thinking of making the JobFinishDate an expression and doing an IF statement but i want it to ignore the date part of the timestamp and only exclude values matching 23:59:59 on the time part.

Thanks

3 Replies
MayilVahanan

HI

Try like this

load *,if(text(time(JobFinishDate))='23:59:59',1,0) as RegionFlag Inline

[

CompletedRegion,RegionSales,JobFinishDate

Central,1000,'23/12/2011 12:11:45'

Central,1000,'23/12/2011 23:59:59'

];

Then in expression, use like this

=Sum({<RegionFlag = {0}>}RegionSales)

From that, we can exclude the  xx/xx/xxxx 23:59:59 in table.

Hope it helps

Regards,

R.MayilVahanan

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi, i want to hide ALL JobFinishDates with a time of 23:59:59 not just the 2 listed.

I thought i could have used a function that could ignore the first 11 characters (The date) and then compare the remaining characters. and if the remaining characters = 23:59:59 then not show it.

MayilVahanan

HI

Just load a sample for your requirement, it suit for all JobFinishDates with a time of 23:59:59.. If you set flag in script means, performance also high ..

Hope it helps..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.