Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
SamuelHaag
Contributor III
Contributor III

LYTD with BillingDate and BusinessYear

Hi guys,

I'm trying to get the sum of the sales from last business year to todays date a year ago:

sum({<


Businessyear  =    {$(=year(today(2))-1)},
Billingdate       <    {$(=Date(AddYears(today(2), -1)))}

 

>}

Sales)

 

How can I get here the sales till the date a year ago? Seems like this '<' operator doesn't work with the Billingdate field.

 

Thanks!

Labels (3)
1 Solution

Accepted Solutions
Rojarao
Contributor III
Contributor III

Try this

 

sum({<


Businessyear = {"$(=year(today(2))-1)"},
Billingdate = {"<$(=Date(AddYears(today(2), -1)))"}

 

>}

Sales)

View solution in original post

2 Replies
Rojarao
Contributor III
Contributor III

Try this

 

sum({<


Businessyear = {"$(=year(today(2))-1)"},
Billingdate = {"<$(=Date(AddYears(today(2), -1)))"}

 

>}

Sales)

SamuelHaag
Contributor III
Contributor III
Author

Looks good thanks!