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 August 31st. Request your voucher.
Hello,
I'm in stuck with my problem. Let's say I have 2 tables: Quotes and Shipments. My goal is to transfer QuoteID from Quotes table into Shipments table if such conditions are met:
Condintion = Condition
Departure is between StartDate and ExpiryDate
please see my file via this link
Solved! Go to Solution.
Hi @Anonymous,
You could try this:
Quote ID = CALCULATE ( FIRSTNONBLANK ( Quotes[Quote ID], 1 ), FILTER ( Quotes, Quotes[Condition] = EARLIER ( Shipments[Condition] ) && EARLIER ( Shipments[Departure] ) >= Quotes[StartDate] && EARLIER ( Shipments[Departure] ) <= Quotes[ExpiryDate] ) )
Best regards,
Yuliana Gu
Hi @Anonymous,
You could try this:
Quote ID = CALCULATE ( FIRSTNONBLANK ( Quotes[Quote ID], 1 ), FILTER ( Quotes, Quotes[Condition] = EARLIER ( Shipments[Condition] ) && EARLIER ( Shipments[Departure] ) >= Quotes[StartDate] && EARLIER ( Shipments[Departure] ) <= Quotes[ExpiryDate] ) )
Best regards,
Yuliana Gu
User | Count |
---|---|
77 | |
76 | |
36 | |
31 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |