cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

How to pic the last date of multiple payment of same Cust Leg Entry No.?

Hi All,

Is there is any code by which i can pick the last payment date of payment date column?

 

Payment DateEntry No_Cust_ Ledger Entry No_Entry TypePosting DateDocument TypeDocument No_AmountAmount (LCY) 
5/14/2008 0:0053229525/13/2008 0:001JV/08/MAY/00003-13483.2-13483.2 
5/14/2008 0:0053829526/24/2008 0:001BRV/APR08/00063-13483.2-13483.2 
5/18/2008 0:0054229525/13/2008 0:001BRV/APR08/00025-11700-11700 
5/18/2008 0:0054429525/13/2008 0:001JV/08/MAY/00003-1783.2-1783.2 
5/18/2008 0:0055029526/24/2008 0:001BRV/APR08/00063-13483.2-13483.2 
5/18/2008 0:0053529525/13/2008 0:001JV/08/MAY/0000313483.213483.2 
5/18/2008 0:0054029526/24/2008 0:001BRV/APR08/0006313483.213483.2 
5/19/2008 0:0054629525/13/2008 0:001JV/08/MAY/000031783.21783.2 
5/19/2008 0:0054829525/13/2008 0:001BRV/APR08/000251170011700 
5/19/2008 0:00153529526/24/2008 0:001BRV/APR08/0006313483.213483.2 
          
1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: How to pic the last date of multiple payment of same Cust Leg Entry No.?

Hi @Satish_Kumar,

Please check if the following steps return your desired result.

1. Create a measure named Maxpaymentdate using the following formula.
Maxpaymentdate = CALCULATE(MAX(Sheet1[Payment Date]),ALLEXCEPT(Sheet1,Sheet1[Cust_ Ledger Entry No_]))

2. Create a column named Delay using the following formula.
Delay = IF([Maxpaymentdate]<Sheet1[Posting Date],DATEDIFF([Maxpaymentdate],Sheet1[Posting Date],DAY),1*DATEDIFF(Sheet1[Posting Date],[Maxpaymentdate],DAY))

3. Create a table visual as follows.
1.PNG

However, if the above steps don't help, please post your expected result here.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Baskar Super Contributor
Super Contributor

Re: How to pic the last date of multiple payment of same Cust Leg Entry No.?

Max( Date) 

Baskar Super Contributor
Super Contributor

Re: How to pic the last date of multiple payment of same Cust Leg Entry No.?

If u want nly max date  use MAX , or do u want some other operation pls clarify dude.

Highlighted

Re: How to pic the last date of multiple payment of same Cust Leg Entry No.?

@Baskar

I have to select the last payment date from the Payment Date Column.

See i have a to calculate the delay in payment from the posting date so for this i have to calculate the payment date and for the payment date i have instructed to take the last apymennt date against the payment ,

If you help me help me out.

 

Moderator v-yuezhe-msft
Moderator

Re: How to pic the last date of multiple payment of same Cust Leg Entry No.?

Hi @Satish_Kumar,

Please check if the following steps return your desired result.

1. Create a measure named Maxpaymentdate using the following formula.
Maxpaymentdate = CALCULATE(MAX(Sheet1[Payment Date]),ALLEXCEPT(Sheet1,Sheet1[Cust_ Ledger Entry No_]))

2. Create a column named Delay using the following formula.
Delay = IF([Maxpaymentdate]<Sheet1[Posting Date],DATEDIFF([Maxpaymentdate],Sheet1[Posting Date],DAY),1*DATEDIFF(Sheet1[Posting Date],[Maxpaymentdate],DAY))

3. Create a table visual as follows.
1.PNG

However, if the above steps don't help, please post your expected result here.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 35 members 1,110 guests
Please welcome our newest community members: