Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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