Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to have KPI show current selection date + 1 month?

Hi, I have a KPI with just a date measure and I wish to show the current selected date + 1 month. So for example I would have 22.05.2015 and I want the KPI to show 22.06.2015. How can I accomplish this?

I am using Qlik Sense if that helps.

Thank you.

7 Replies
swuehl
MVP
MVP

Maybe something like this (would be easier if you could post your current KPI expression):

=Sum({<DateField = {'$(=Date(addmonth(max(DateField),1)))'} >} Value)

Not applicable
Author

Hi swuehl,

I just want to show the date on KPI, not another value. I created a measure called vMaxDatePlusMonth as

Let vMaxDatePlusMonth = Max(addmonths("$(StartDate)",1))

gautik92
Specialist III
Specialist III

if you want it dynamic create a variable and set as 1 in expression jus add the variable

swuehl
MVP
MVP

Not sure if I understand.

Do you want to calculate the variable depending on current user selections? Based on which date field?

Your above variable will be set once in the script, so it will not be changed by user selections.

You may define the variable using SET like:

SET vMaxDatePlusMonth = '=Date(addmonth(max(DateField),1))';

qlikmsg4u
Specialist
Specialist

Like this?

Load * Inline [

Date

02/12/2015

09/24/2015];

In front end

Let vStart = Max(Date);

Let vStartPlus1 = AddMonths(vStart,1);

Not applicable
Author

Hi, yes I had something like that earlier but the date is not appearing in KPI. It shows a dash '-' across the screen. I'm not sure what's wrong...

qlikmsg4u
Specialist
Specialist

Please attach your sample app so that we can able to help you