Skip to Content

Getting the latest record

Hello,

I have this in a generated webi report:

customer date value

1 01/15/2016 08:38:00 AM red

2 01/13/2016 02:49:00 PM blue

2 01/14/2016 09:28:00 AM green

3 01/13/2016 02:49:00 PM white

3 01/13/2016 03:49:00 PM magenta

3 01/13/2016 04:49:00 PM yellow

3 01/13/2016 09:49:00 PM black

I need to display the most recent "value" for each customer

1 01/15/2016 08:38:00 AM red

2 01/14/2016 09:28:00 AM green

3 01/13/2016 09:49:00 PM black


I tried Max([date]) and Last ([date]) as variables but no luck


Thanks


Chuck


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 15, 2016 at 07:55 PM

    Hi,

    Create one variable Var. Add the filter on Var where equal to Show

    Var=If([Date]=Max([Date]) In ([Customer])) Then "Show" Else "Hide"

    Amir

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.