Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ashishpalkar
Creator III
Creator III

Show Latest Month Data

Hi There

I have below requirement, where I want to show latest month data from given set of data, From below example I want to show only May Data in the graph / Table by default without selecting any parameters on the QV application.

  

DateProjectAssociate
1/1/2015ABC 1
1/2/2015ABC 2
1/3/2015ABC 3
1/4/2015ABC 4
1/5/2015ABC 5
1/6/2015ABC 6
1/7/2015XYZ7
1/8/2015XYZ8
1/9/2015XYZ9
1/10/2015XYZ10
1/11/2015XYZ11
1/12/2015XYZ12
2/1/2015ABC 1
2/2/2015ABC 2
2/3/2015ABC 3
2/4/2015ABC 4
2/5/2015ABC 5
2/6/2015ABC 6
2/7/2015XYZ7
2/8/2015XYZ8
2/9/2015XYZ9
2/10/2015XYZ10
2/11/2015XYZ11
2/12/2015XYZ12
5/1/2015ABC 1
5/2/2015ABC 2
5/3/2015ABC 3
5/4/2015ABC 4
5/5/2015ABC 5
5/7/2015XYZ7
5/8/2015XYZ8
5/10/2015XYZ10
5/11/2015XYZ11

Thanks in advance.

16 Replies
sunny_talwar

Is this what you want?

Capture.PNG

Script:

Table:

LOAD Date,

    Project,

    Associate

FROM

[https://community.qlik.com/thread/169856]

(html, codepage is 1252, embedded labels, table is @1);



Dimension: Date, Project

Expression: =Only({<Date = {"$(='>=' & Date(AddMonths(Max(Date),-1)))"}>}Associate)

Best,

Sunny

MK_QSL
MVP
MVP

Use Calculated Dimension in your Application..

=Date(IF(Date>=MonthStart(Today()) and Date<=MonthEnd(Today()), Date))

ashishpalkar
Creator III
Creator III
Author

Thanks

I want to count Number of associates for the months / project. 

ashishpalkar
Creator III
Creator III
Author

I want to show this information on Graph.

MK_QSL
MVP
MVP

Dimension

=Date(IF(Date>=MonthStart(Today()) and Date<=MonthEnd(Today()), Date))

Project

Expression

COUNT(Distinct Associate)

or

COUNT(Associate)

sunny_talwar

This?

Capture.PNG

ashishpalkar
Creator III
Creator III
Author

Yes, this kind of output on graph.

sunny_talwar

Convert it into a bar graph or line chart according to your need !:

Capture.PNG

ashishpalkar
Creator III
Creator III
Author

Thanks , this is exactly what I am looking for.  Can you please send me QV file?