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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
thomas_2583
Contributor III
Contributor III

Automate Date Logic

Hi, 

I have 2 KPI's whereby each month, I have to update hard coded values. What would be great is to automate these, any idea how I can amend my code please to show previous months data? 

Sum({<Week = {"=MonthName(Week) = MonthName('01/12/2019')"}>}[Total Cost])

 

2 Replies
Taoufiq_Zarra

can you share a sample data and develop your need

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
lorenzoconforti
Specialist II
Specialist II

Maybe something like this?

 

Sum({<Week = {"=MonthName(Week) = MonthName(Today ())"}>}[Total Cost])