Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Although I still regard myself to be a newbie to QlikView, I thought this solution to a problem I had (and oh boy, did I wrestle with it..) is worthwhile posting.
Let's suppose you have a table, in which you have many entries for one Id. Sometimes, it's handy to "clean-up" that table and lose all records, except those with the highest value in a certain field (other than Id). This could be a date, an amount of $, anything.
I have done some experimenting with peek() function. Maybe this might come in handy for some of you.
Of course, you gurus out there who have a far more simple solution: I'm eager to learn about it!
I have attached the simple qvw file.
Best regards,
Hans
Hi Hans,
You can do this easily by an expression in Straight table
exp need to be like below
=aggr((max(Val)),Id#).
Yes, it would do that in a Straight table, but what I wanted, was to create a QVD, based on the original table. Displaying the values in a Straight table, was in my case not the aim, but reducing data.
Not sure I understand... Care to elaborate?