Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
leocattqv
Creator
Creator

Value from a max date

Hi All,

I am stumpped on a seemingly easy question.

I have a table that shows

  

Business UnitYr/Mon OrigMonthEndDateCPM
Dept 12015/011/31/2015      2,047
Dept 22015/011/31/2015      2,364
Dept 32015/011/31/2015      2,936
Dept 12015/022/28/2015      1,726
Dept 22015/022/28/2015      2,239
Dept 32015/022/28/2015      2,365
Dept 12015/033/31/2015      1,963
Dept 22015/033/31/2015      2,101
Dept 32015/033/31/2015      2,008
Dept 12015/044/30/2015      1,868
Dept 22015/044/30/2015      2,083
Dept 32015/044/30/2015      2,288
Dept 12015/055/31/2015      1,729
Dept 22015/055/31/2015      1,831
Dept 32015/055/31/2015      2,027
Dept 12015/066/30/2015    1,702
Dept 22015/066/30/2015      1,610
Dept 32015/066/30/2015      1,748

what I a trying to do is display the latest CPM for that Dept - in this case its the bottom 3 numbers..  Again, I know this is simple but can someone point me the right direction?

thanks

-L

5 Replies
swuehl
MVP
MVP

Take care that your dates are interpreted by QV as such and show a numeric representation.

Then create a straight table chart with dimension Business Unit and as expression

=FirstSortedValue(CPM, -MonthEndDate)

maxgro
MVP
MVP

in a chart with Business Unit as dimension,

the expression should be

FirstSortedValue (CPM, -MonthEndDate)

leocattqv
Creator
Creator
Author

thank you Massimo, that worked.

thanks,

-L

maxgro
MVP
MVP

Please close the thread giving helpful and/or correct answers.

Thanks

qlikviewwizard
Master II
Master II

Hi Please close the thread giving helpful and/or correct answers.