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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Variable

Hi All,

I have a text boject and within its layout i have a condition which is

Max({Dashboard} Date_MonthNumber) <= Max_Lead_YearMonth

and i checked the variable ( Max_Lead_YearMonth) which is further defined as below

=Year(MAX_Lead_Date) * 100 + Month(MAX_Lead_Date)  

it works fine till janaury 2017 but when i slecet Feb 2017 the text object dissapears

Can someone please suggest if i need to make some changes to the variable ?

it should not dissappear if i select any month . can change the variable like below ?

=Year(max({1} MAX_Lead_Date)) * 100 +Num(Month(max({1} MAX_Lead_Date)))

Thanks in advance

Labels (1)
5 Replies
sunny_talwar
MVP
MVP

What exactly are you trying to do here? Would you be able to share a sample? what are the values for Date_MonthNumber and its format and values for MAX_Lead_Date and its format?

ramasaisaksoft
Master
Master

Hi John,

Can you elaborate properly?

we didn't understand your issue properly.

smilingjohn
Specialist
Specialist
Author

Hi Sunny ,

My requirement is it whould even appear for current month ..  and below is the format of the date

date.PNG

Anil_Babu_Samineni
MVP
MVP

Confused, Fully not understand your intend to show

=Year(MAX_Lead_Date) * 100 + Month(MAX_Lead_Date)


Assume You have Dates like 01-01-2016 To 26-02-2017


From here When you use Year here Values come up like 2016 & 2017. This case, For which year you calculating with 100 in Text object. And Month() function returns only Name. I am not sure i understand here due to string and Number are involved on your Expression

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sasiparupudi1
Master III
Master III

change the variable

from =Year(MAX_Lead_Date) * 100 + Month(MAX_Lead_Date)  

Date(MAX_Lead_Date,'YYYYMM')


hth

Sas