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: 
cgT
Creator
Creator

Seemingly ok formula returning blank (i.e. no values)

Hi there,

I'm trying to calculate the Week on Week up/down percentages for two dynamically changing transaction date ranges:

 

=(sum({<TransactionDate = '>=$(=WeekStart(Today()))<=$(=WeekEnd(Today())))'>} SoldValue)- sum({<TransactionDate = '>=$(=WeekStart(Today()-7))<=$(=date(Today()-7))'>} SoldValue)) 
/
sum({<TransactionDate = '>=$(=WeekStart(Today()))<=$(=WeekEnd(Today())))'>} SoldValue)

However, when I run it, it returns no value. Not '0' but blank.

Can someone help please?

Thank you 

Labels (1)
2 Solutions

Accepted Solutions
edwin
Master II
Master II

you need to enclose the values in brackets

{<Transactiondate={...}>}

View solution in original post

anat
Master
Master

Week calculation should be in curly brackets covered by double quotes

View solution in original post

2 Replies
edwin
Master II
Master II

you need to enclose the values in brackets

{<Transactiondate={...}>}

anat
Master
Master

Week calculation should be in curly brackets covered by double quotes