Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

Error is Expression

Hello,

I have written an expression which is unfortunately returning a 0 value, however I know I am expecting a higher value than 0

Could someone kindly take a look at the syntax and let me know if I have put in too many brackets, or not enough commas etc

Any help would be greatly appreciated

SUM({$<FactDateNum =

{">=$(=date(makeweekdate(year(now()),week(now()))))<=$(=(date(makeweekdate(year(now()),week(now()))+6)))"}>}

QuarterlyBreaches_Attendance_ID)

3 Replies
MK_QSL
MVP
MVP

What is the format of FactDateNum ?

PrashantSangle

Hi,

Check your expression in text object

=date(makeweekdate(year(now()),week(now())))

and

=(date(makeweekdate(year(now()),week(now()))+6))


Looks like you have bracket issue in second expression


Regards



Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
MayilVahanan

Hi

Hope that FactDateNum contains the date in number format.

Try like this

SUM({$<FactDateNum =

{">=$(=Floor(date(makeweekdate(year(now()),week(now()) ))))<=$(=Floor(date(makeweekdate(year(now()),week(now()))+6)))"}>}

QuarterlyBreaches_Attendance_ID)

Edit: Instead of Now() , please use Today() ..

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