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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Three months earlier

Hello,

Currently I'm working on debt models. I'm trying to extract the 3 months earlier with another table. For example If I do clic on Jan2011 I need to get Nov2011, Dic2011,Jan2011. If I do clic On Feb2011 I need to get Dic2011, Jan2011,Feb2011 and so on. How ca I do achieve this?

I left an attached sample for better comprenhension.

Thank You!

Labels (1)
13 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Simply select a date in ReportMes. You will see that three months in Fecha_Protesto are still 'active' (possible). The others are unselected (excluded) and not counted in the calculations. If I understood you correctly, this is what you were trying to achieve. If so, congratulations!


talk is cheap, supply exceeds demand
pgalvezt
Specialist
Specialist
Author

Just one more question. How can I left the date using Monthname function inside the Inline Table?

Thank you for your help!

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I don't understand your question. But perhaps the answer you're looking for is a preceding load.

Report_Table:

Load *, monthname(ReportMes) as ReportMonth

Load * Inline[

ReportMes, Fecha_Protesto

31/01/2011, 30/11/2010

31/01/2011, 31/12/2010

31/01/2011, 31/01/2011

28/02/2011, 31/12/2010

...

];

What happens above is that the results of the inline load are used in the load statement just above it. In this case the monthname function is applied to the ReportMes field to create a new field named ReportMonth. I hope this helps.


talk is cheap, supply exceeds demand
pgalvezt
Specialist
Specialist
Author

The clean field format = DD/MM/YYYY

With the MonthName Function gives (Jan 2010, Feb 2010 So on)

In my script I used MonthName. But in Inline Table Doesn't work gives Error.