Forum Discussion
RELATED/RELATEDTABLE with condition
- 7 years ago
Hi,
In the Order Details Table, create a calculated column to extract Year from the Date: Year = YEAR('Order Details'[Date]). Assuming every Year and SKU record in the Cost Table is a unique combination, try this calculated column formula in the Order Details Table
=LOOKUPVALUE('Cost'[Unit Cost],'Cost'[SKU],[SKU],'Cost'[Year],[Year])
This formula should work without creating any relationship betwenn the 2 Tables.
Hope this helps.
If the latest Cost values are still not available, how do I nest the LOOKUPVALUE to return the latest value available?
Please have the basic courtesy to thank me for helping you in the first place - it is just basic etiquettes. For your second question, share both datasets (in a format that i can paste them in an Excel file) and show the expected result.
- Anonymous7 years agoNot applicable
I have no excuse. Please accept my sincerest apology. Will not happen again.
- Ashish_Mathur7 years ago
Super User
No problem - Thank you. Please share the datasets requested for in my previous message - I hope i can help.