Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Want to retrieve only latest month data in straight table

Hello all,

I have 3 fields.

CLIENTS

MONTH

REVENUE

Not all clients have revenue in all months.

I'd like to show in a straight table, the REVENUE FOR THE LATEST MONTH.

suggestion?  I tried incorporating max(month) into set analysis but doesn't seem to be working.

Thanks in advance!

1 Solution

Accepted Solutions
MVP
MVP

Re: Want to retrieve only latest month data in straight table

Have you used FirstSortedValue with a negated MONTH as sort weight as shown above?

4 Replies
MVP
MVP

Re: Want to retrieve only latest month data in straight table

You are using a straight table with dimension CLIENTS? Try using

=FirstSortedValue( REVENUE, -MONTH)

as expression, then.

Not applicable

Re: Want to retrieve only latest month data in straight table

Very close, but this is pulling in the FIRST month's revenue.

Is there a way to pull in the LATEST month's revenue?

Thanks again!

MVP
MVP

Re: Want to retrieve only latest month data in straight table

Have you used FirstSortedValue with a negated MONTH as sort weight as shown above?

Not applicable

Re: Want to retrieve only latest month data in straight table

I just now saw that and plugged in the negative month.  This worked perfectly.  Thank you so much for your help!!!