Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi
I want to calculate the cost of the product entered from the latest date.
I want to get the unit amount from the latest date in the cost table. But I couldn't find how to find it with a formula.
Thank you
Solved! Go to Solution.
I think that problem connected with several prices with one date. We can try use
latest price =
VAR _LastDate = CALCULATE( MAX(coast_2019[InvoiceDate]), ALLEXCEPT(coast_2019, coast_2019[ItemCode]))
VAR _Result = CALCULATE( MAX(coast_2019[coast MMM]), FILTER(coast_2019, coast_2019[InvoiceDate] = _LastDate ))
RETURN
_Result
Thank you for the answer. It is an excellent feeling for us to have people who help in such a platform.
Itemcode P-000009076 code as in the example, but an expression like 134,911,40 appears.
It should be 546.20. I think the Itemcode collects and writes its totals. Can you help me.
I think that problem connected with several prices with one date. We can try use
latest price =
VAR _LastDate = CALCULATE( MAX(coast_2019[InvoiceDate]), ALLEXCEPT(coast_2019, coast_2019[ItemCode]))
VAR _Result = CALCULATE( MAX(coast_2019[coast MMM]), FILTER(coast_2019, coast_2019[InvoiceDate] = _LastDate ))
RETURN
_Result
you are great, thank you.
Hi
latest price =
VAR _lastDate = CALCULATE( MAX(coast_2019[InvoiceDate]), ALLEXCEPT(coast_2019, coast_2019[ItemCode]))
VAR _Result = CALCULATE( SUM(coast_2019[coast MMM]), FILTER(coast_2019, coast_2019[InvoiceDate] = _lastDate))
RETURN
_Result
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 18 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 21 | |
| 14 | |
| 12 |