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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
thanhphongle
Creator II
Creator II

max date in dimension

Hello Community,

is there a way to return in a bar chart the max(date) as dimension.

Here is an example:

OrderNoOrder_PositionDateOrder_Quantity
10001101.02.201810
10001201.02.201820
10001303.02.201830
10002115.02.201850
10002215.02.2018100
10002320.02.2018150

QV should return in the dimension and as expression this:

OrderNoDatesum(Order_Quantity)
10001max(date) = 03.02.201860
10002max(date) = 20.02.2018300
1 Solution

Accepted Solutions
sumeet-vaidya
Partner - Creator
Partner - Creator

Hi Thanh,

Kindly add a calculated dimension as shown below in your chart.

Aggr(Max(Date#(Date, 'DD.MM.YYYY')),OrderNo)

Regards

Sumeet

View solution in original post

5 Replies
tresesco
MVP
MVP

How is order_quantity 200 for order 10002?  Do you want quantity of max date or the entire quantity for the order?

sumeet-vaidya
Partner - Creator
Partner - Creator

Hi Thanh,

Kindly add a calculated dimension as shown below in your chart.

Aggr(Max(Date#(Date, 'DD.MM.YYYY')),OrderNo)

Regards

Sumeet

thanhphongle
Creator II
Creator II
Author

I m sorry it should be 300

tresesco
MVP
MVP

Try like:

Capture.JPG

thanhphongle
Creator II
Creator II
Author

Thanks for your solution!