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: 
melistrkglu
Contributor II
Contributor II

Variable doesn't work with inline tablo

Hello,

Variable doesn't work with inline tablo.

We created this in script:

LOAD * INLINE [
Button
Include
Exclude ];

We used this expression:

=if(Button='Include', sum({<Date={">$(vLast3)"} >} Sales),
if(Button='Exclude', sum({<Date={">$(vLast3"}>} Sales_SIZ) ))

Last3 variable:
=addmonths(max(Date2),-3)

Button is used as filter but when we use button, expression doesn’t work correctly and it still brings all dates although we work with ">Last3".

It should show after February 2020 according to this case.

I attached qvf, excel and screenshot.

Thanks for your help.
King Regards,
Melis

8 Replies
Taoufiq_Zarra

have you tested :

=Date(addmonths(max(Date2),-3),'MM/YYYY')

for Last3 

or can you share a sample data and the expected output ?

Regards,
Taoufiq ZARRA

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

(you can mark up to 3 "solutions") 😉
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Please upload .qvf file.

 

Or check the you have uncheck Include null values under your Dim and also uncheck under Add-ons Data handling Include zero values.

Try that and if it doesn't work upload your .qvf file

melistrkglu
Contributor II
Contributor II
Author

Thank you but it does not work. I updated my case and added qvf, excel and screenshot.

melistrkglu
Contributor II
Contributor II
Author

I had uncheck null values under Dim. However, I can not have uncheck under Add-ons Data handling Include zero values because I should see zero values in dates which are required. I uploaded qvf and excel file.

Thanks for your answer

Taoufiq_Zarra

Maye be attached ?

Capture.PNG

Regards,
Taoufiq ZARRA

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

(you can mark up to 3 "solutions") 😉
melistrkglu
Contributor II
Contributor II
Author

Thanks but it should just be appeared after February 2020.

Taoufiq_Zarra

@melistrkglu 

Can you elaborate on the output you're expecting?

Capture.PNG

Regards,
Taoufiq ZARRA

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

(you can mark up to 3 "solutions") 😉
melistrkglu
Contributor II
Contributor II
Author

I want exactly this as image but zero values should not be hidden. For instance, if there is zero value in 5 May 2020, it is necessary to see it.