Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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])