Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

select the max value by date

Hi,

Need some helps here.

I'm trying to show the max "Rows" value by date.

For example:

The max row for abc.qvw is on 19-09, it should show 23.

then for xyz.qvw, the max row is on 18-09, so it should show 55.

1 Solution

Accepted Solutions
Not applicable
Author

Hi

Please check my attached file.

do let me know if this one help you.

View solution in original post

18 Replies
Not applicable
Author

Hi,

Use Maxstring function in place of sum

HTH

Reg,

Shubhu

Not applicable
Author

In fact, i have tried so many possible ways.

None works....

so i suspect, it's either not possible to do it with that structure, or we need to manipulate the data further.

this expression works if only there's only one date row. when u have multiples, it wont work.

MaxString(if(DATE=aggr(maxstring(DATE),QVW),ROWS))

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Have a look at the attachment.

Regards,

Kaushik Solanki  

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Sokkorn
Master
Master

Hi,

Try to change from sum(Rows) to max(Rows).

Regards,

Sokkorn

Not applicable
Author

Hi,

Check the attached doc.

Reg,

Shubhu

Not applicable
Author

Hi Kaushik,

Thanks, but i need it in the table.

Not applicable
Author

Hi Shubhu,

Neat, but the data is wrong. the 55 is on 18-09. not 19-09.

Thanks.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    OK have a look at the file.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi Kaushik,

Thanks agian, but the max() wont work if we want QVD | DATE | ROWS in the table.

Any other tips?