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: 
mario-sarkis
Creator II
Creator II

Date

Hey all,

my question is i have a field of Date and amount for example:

PerioDate : is to field of Date as number

i need to calculate in a BAR CHART

1- Sum({<periodDate=MaxDate>}amount)  (Current date)

2- Sum(({<periodDate=YearAgo>}amount)  (YearAgo)

3- Sum(({<periodDate=LastMonth>}amount)  (Last Month)

Please help


11 Replies
mario-sarkis
Creator II
Creator II
Author


hey Max sorry for disturbing i used it in the expresseion as below

Sum({<periodDate={"$(=num(MonthName(AddYears(max(periodDate),-1))))"}>}amount)

it give me zero so i thinking of greating the field YearMonth in the script. and see.

Thank you alot hope it will work:)

PrashantSangle

Hi,

Is it possible to post your app???

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 🙂