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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show only max date values?


Hi,

I have data as below in excel.

                                      

NOFromToNamedate
432434SalesFuncornerXX06/05/2015
  12:56
432434SalesFuncornerXX12/06/2015
  15:04
432434NO Road TaxXX12/06/2015
  14:30
432434WorkshopRoad TaxXX13/04/2015
  16:15

I need table to show max date when To ='Road Tax'  (in this case the table should show 12/06/2015 14:30) and max date when To ='Funcorner'  (in this case the table should show 12/06/2015 15:04)

Please can anyone suggest me how to do this.

Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

Take dimension as 'To' and expression as max(date). This should work i guess.

View solution in original post

10 Replies
avinashelite

try like this in the chart:

Aggr(max(date),to)

where date and to are the column names

Not applicable
Author

I always do it in the load script by using the Max statement.

I haven't figured out a better way as yet.

Not applicable
Author

Thats a better way than mine!

Not applicable
Author

Take dimension as 'To' and expression as max(date). This should work i guess.

avinashelite

Hi Peter,

If do not require the data slicing to the nth level ,we can always reduce the data in the script itself that a better way but if you don't want the data to reduce we can handle it in the front end

Not applicable
Author

Thanks. will this work if there are multiple NO values?  I have tried it. it is showing over all max date values. when I click individual NO values table is showing blanks.

Not applicable
Author

Thanks. tried this and it worked.

avinashelite

but if you have multiple dimension it might not work properly !!

Not applicable
Author

Thanks. would it work if use in script?  please let me know