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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
mhmmd_srf
Creator II
Creator II

Date Range Issue in Set Analysis

HI All,

I want to have Sales for Last 30 days based on Date Selection. But this is not showing any value.

I am using below expression:

=sum({<CstDate1 = {">$(=$(vMaxDate_30)) <$(=$(vMaxDate))"}>}LineValue)

I am attaching my sample App. Could you please check and help me.

Please check in Detail Tab.

Thanks,

Sarif

Labels (1)
5 Replies
PrashantSangle

Expression looks correct .

Check with your data and date value.

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 🙂
schlettig
Partner - Creator
Partner - Creator

Hi Mohammad,

you could try it with an "AsOf" Calendar.

Here's a very good example:

https://community.qlik.com/docs/DOC-13536

Best regards,

Christian

PrashantSangle

try below expression

=sum({<CstDate1 = {">=$(=$(vMaxDate_30)) <=$(=$(vMaxDate))"}>}LineValue)

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 🙂
tresB
Champion III
Champion III

Include all the date fields that could be selected in the set analysis like:

=sum({<CstFiscalPeriod,CstFiscalYear,CstDate, CstDate1 = {">$(=$(vMaxDate_30)) <$(=$(vMaxDate))"}>}LineValue)

sergio0592
Specialist III
Specialist III

Hi, please try with :

sum({<CstDate1 = {">$(=AddMonths(Max(CstDate),-1))  <=$(Max(CstDate))"}>}LineValue)