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 All,
I have 1 column in my Nav_Item table called average selling price and I would like to multiply this by my Free Stock Value measure. For some reason when I perform this return answer is wrong... Anyone have any ideas? For example...
Customer Name | Product Name | Average Selling Price | Free Stock Quantity | Stock Value |
Bob | Apples | £98.12 | 10,208.44 | £250,412.93 |
Measure for Free Stock Quantity is using Total Quantity measure from my Nav_ItemLedger - Total TOB Approved Unposted from my Nav_SalesLine table here are the measures below...
Hopefully this is explained effectively and long story short...
'NAV_Item Ledger Entry'[Quantity]
...subtract...
'NAV_Sales Line'[Outstanding Quantity])
= Free stock Quantity and then get this Free stock Quantity * Average Sales Price....
Many Thanks,
Taylor 😊
Solved! Go to Solution.
Hi @Ttaylor9870
Please try
NewMeasure =
SUMX ( Nav_Item, Nav_Item[average selling price] * [Free Stock Value measure] )
Hi @tamerj1 , Thanks for replying!
This still gives the wrong answer, I'd assume this should give the correct one so it may be down to my data model then? I've tried everything and still can't manage to catch it.
Here is the relationship below...
And here are the tables...
Nav_Sales Line:
No_Production GroupAverage Selling PriceProduct NameDocument No_Outstanding Quantity
ABC | Lego | 1 | Blue | SO1234 | 33 |
ABC | Lego | 2 | Green | SO1235 | 44 |
ABC | Lego | 3 | Gold | SO1236 | 55 |
ABC | Lego | 4 | Black | SO1237 | 66 |
ABC | Lego | 5 | Silver | SO1238 | 77 |
JJJ | Cars | 1 | Red | SO1239 | 22 |
JJJ | Cars | 2 | Blue | SO1231 | 33 |
JJJ | Cars | 3 | Grey | SO1232 | 11 |
Nav_Item:
No_Production GroupAverage Selling PriceProduct Name
ABC | Lego | 1 | Spiderman |
JJJ | Cars | 2 | Optimus Prime |
Nav_Item Ledger Entry
Item NoQuantity
ABC | 2 |
ABC | 3 |
ABC | 6 |
JJJ | 7 |
JJJ | 2 |
JJJ | 3 |
Measures I have used so far...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
27 | |
17 | |
16 | |
12 | |
11 |
User | Count |
---|---|
35 | |
26 | |
26 | |
20 | |
15 |