Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Row Selection

Hi Everyone,

I have following Requirement,

Table1:

EntryNo
ItemNoPostingDate
E01I00105/07/2012
E02I00106/07/2012
E03I00208/07/2012
E04I00301/07/2012
E05I00130/06/2012
E06I00225/06/2012

Table2:

BusGroupProductGroupItemNo
FromDate
EBPG-001RMI00102/07/2012
EBPG-001RMI00103/07/2012
EBPG-001RMI00205/07/2012
EBPG-001PMI00208/07/2012
EBPG-001PMI00306/07/2012
EBPG-001RMI00109/07/2012

EntryNo-PostingDate(one to one)

When I will select BusGroup EBPG-001,ProductGroup RM & ItemNo I001, Then I will get multiple FromDate (02/07/2012,03/07/2012,9/07/2012)

When I will select EntryNo  E02 for the same ItemNo I001 then I will get PostingDate 06/07/2012

Now,I want to select that row from Table2 whose FromDate is Maximum Among all dates that are less than or equal to PostingDate for EBPG-001 & RM Combination

So in this case,It will select FromDate 03/07/2012 which is less than 06/07/2012.

How can I do this??

Thanks.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Have a look at the application attched here with.

   All you have to do is Create a chart with Two dimensions those are EntryNo and ItemNo and include following expression.

   max({<FromDate = {"<$(=max(PostingDate))"} >}FromDate)

   This will give you the max FromDate where the FromDate is lesser then Posting date.

    Hope this will solve your problem.

Regards,

Kaushik Solanki

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

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Have a look at the application attched here with.

   All you have to do is Create a chart with Two dimensions those are EntryNo and ItemNo and include following expression.

   max({<FromDate = {"<$(=max(PostingDate))"} >}FromDate)

   This will give you the max FromDate where the FromDate is lesser then Posting date.

    Hope this will solve your problem.

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 for correct reply. The expression is working as per the requirement.