March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have following issue.
There is a stock calculated over time based on a table with stock movement.
There is a measure calculating the stock and this is working fine:
The next step for me is to calculate stock value over time taking parts prices from another table:
It seems to be easy calculation: stock_value = parts_qty * part_price but I can not manage it. I would like to display changes over time. PBIX attached here
Solved! Go to Solution.
Thanks for the reply, actually in the original file the issue was much simpler. There was a mess in data types. After data types correction everything sarted to work as intended.
Hi @Tomek1982,
You can use the LOOKUPVALUE DAX function to pull in values of Part Price from the other table and then calculate Stock Value. Refer:
https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts
I m not understanding in 100% but if you want to use 2 different tables in calculation, than you must create relationships between them.
In dax, use logical funtion to connect them. = related or relatedtable
Thanks for the reply, actually in the original file the issue was much simpler. There was a mess in data types. After data types correction everything sarted to work as intended.
Hi,
How did you in the end make the calculation to get the stock value?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |