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: 
Anonymous
Not applicable

num of date issue

When i use NUM(Date(WEEKEND(LOAD_DATE),'MM/D/YYYY')) I am getting value with decimal i.e 42708.999999988

But when i pass the value of Date(WEEKEND(LOAD_DATE),'MM/D/YYYY') directly i.e 12/4/2016 by hardcoding

NUM('12/4/2016') i get whole number 42708.

Could you please let me know how can i avoid decimal with first expression, because of this bug i am getting one value extra for all the count.

4 Replies
MK_QSL
MVP
MVP

Try

NUM(Date(WEEKEND(Floor(LOAD_DATE)),'MM/D/YYYY'))

MK_QSL
MVP
MVP

You can simply write

Floor(LOAD_DATE)

also

Anil_Babu_Samineni

Or may be Number format define

NUM(Date(WEEKEND(LOAD_DATE),'MM/D/YYYY'),'##0')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

I think manish weekend gives a timestamp instead of date, so having the Floor after Weekend should fix the issue

Num(Floor(WeekEnd(LOAD_DATE)))