Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

Dimension to include Target for maximum date

Dear Qlikview User

I have a dataset which is set up as follows:

Metric    Date      Target

A           Jan-17      2

A           Feb-17      3

A           Mar-17      2

B           Jan-17      1

B           Feb-17      2

B           Mar-17      1

I would like to bring the Target field in as an expression or dimension but it would have to be for the maximum Date as my pivot table is only showing data for the most up to date month

Could someone kindly guide me on how to write the correct syntax to achieve this for a dimension/Expression

Kind Regards

Helen

1 Solution

Accepted Solutions
sunny_talwar

May be like this: (Expression)

Only({<Date = {"$(=Date(Max(Date), 'MMM-YY'))"}>} Target)

View solution in original post

2 Replies
sunny_talwar

May be like this: (Expression)

Only({<Date = {"$(=Date(Max(Date), 'MMM-YY'))"}>} Target)

helen_pip
Creator III
Creator III
Author

Thank you SunnyT

This provided me with what I required

Thanks

Helen