Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis with Conditional Selections

I am trying to create an expression as follows :

sum({1<InvoiceDate = {"=($(vTodaysDate) - InvoiceDate)<366"}>} [LineSalesAmount]))

1. The expression should be independent of any selections. So I added sum({1 ....

2. But the issue is I have InvoiceDate inside the condition . So this condition is afffected by the selection

The question is how can I make the condition also independent of the selection



1 Reply
d_pranskus
Partner - Creator III
Partner - Creator III

Try to use following expression

SUM({1<InvoiceDate = {">=$(=DATE(TODAY()-366))<=$(=DATE(TODAY()))"}>} [LineSalesAmount])

This will sum all invoices in last 366 days.

The Number Format of the field InvoiceDate must be Date.