The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I've been trying to figure this out for days now without any luck. I get close, but not the exact answer.
Here's the example data:
What I'm looking to do is find the primary partner (output in table 1) who has created the latest (by created date) lead against the correct opportunity ID (table 2).
So for example, out of the 5 leads against opportunity ID "123" in table 2, Walmart is the latest lead to have been created and therefore, the "primary partner" field in table 1 is populated with Walmart.
I've tried using various formulas to get to the answer, e.g.:
Solved! Go to Solution.
Hello @Cadams ,
please check if this accomodate your need.
1. your maxx looks good, however the expression of maxx can be changed into date that returned a correct date as you mentioned above.
2. do maxx again with the date that previously calculated (which already return as accurate value) and matching opportunity ID. If you dont want to use maxx again, you can use CALCULATE as replacement.
And yes, if expression in first maxx is put directly into partner name, it would return into inaccurate value (from my experience, it because your data has skip date which is no 01/01/2024). However, since this is from my experience, my reason might be wrong.
Hope this will help you.
Thank you.
@Irwan , thank you so much. I've spent hours and hours trying to figure all combinations out, going through so many different forums and you got it in one!
Massive massive thank you!
Hello @Cadams ,
please check if this accomodate your need.
1. your maxx looks good, however the expression of maxx can be changed into date that returned a correct date as you mentioned above.
2. do maxx again with the date that previously calculated (which already return as accurate value) and matching opportunity ID. If you dont want to use maxx again, you can use CALCULATE as replacement.
And yes, if expression in first maxx is put directly into partner name, it would return into inaccurate value (from my experience, it because your data has skip date which is no 01/01/2024). However, since this is from my experience, my reason might be wrong.
Hope this will help you.
Thank you.
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |