Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I'm creating an SLA indicator for this, I need to do this formula below.
I have two tables, one containing the order number, order creation date and request number that originated the order, the other has the approval date of the requests that some have a re-approval date after the creation date of the request.
I need to bring to the order table, the approval date that is the last approval date before the order creation date.
RC - APPROVAL DATE
1 10/12/2022
2 10/07/2022
RC - APPROVAL DATE
1 10/08/2022
1 10/14/2022
2 10/05/2022
2 10/06/2022
2 10/10/2022
Solved! Go to Solution.
Hi @Greg5 ,
According to your description, seems you messed up the data. I create a sample.
Order table:
Approval table:
Here's my solution. Create a calculated column in Order table:
Column =
MAXX (
FILTER (
'Approval',
'Approval'[Request num] = EARLIER ( 'Order'[request number] )
&& 'Approval'[APPROVAL DATE] <= EARLIER ( 'Order'[order creation date] )
),
'Approval'[APPROVAL DATE]
)
Get the correct result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Greg5 ,
According to your description, seems you messed up the data. I create a sample.
Order table:
Approval table:
Here's my solution. Create a calculated column in Order table:
Column =
MAXX (
FILTER (
'Approval',
'Approval'[Request num] = EARLIER ( 'Order'[request number] )
&& 'Approval'[APPROVAL DATE] <= EARLIER ( 'Order'[order creation date] )
),
'Approval'[APPROVAL DATE]
)
Get the correct result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
you provided two sample data of approval table. What's the sample data in another table?
What's the expected output?
Proud to be a Super User!
User | Count |
---|---|
123 | |
76 | |
62 | |
50 | |
49 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |