Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I have two tables which have no relations:
In Table 1 I would like a calculated columns with the relevant price. I would like to retrive the "PRICE" for the relevant SKU_ID where DATE_PRICE_CHANGE is the highest possible but still lower than DATE in TABLE 1.
So I imagine it would be something like the formula below where I need help with "xxxxxxxxx"-part
PRICE =
LOOKUPVALUE (
Table2[Price];
Table2[SKU_Id]; Table1[SKU_id];
Table2[DATE_PRICE_CHANGE]; xxxxxxxxxxxxxxxxxx...............Table1[DATE]
)
Thank you in advance for any help. If "lookupvalue" isn't the best solution for this I'm happy for other suggestions as well.
Best regards,
Solved! Go to Solution.
You may refer to the following example.
http://community.powerbi.com/t5/Desktop/Find-last-value-based-on-date/m-p/293150#M129228
You may refer to the following example.
http://community.powerbi.com/t5/Desktop/Find-last-value-based-on-date/m-p/293150#M129228
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |