Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello!
I am currently working on a report with data from an older version of NAV to display infromation about the inventory but I've hit a snag when it comes to displaying the current inventory value.
I got two tables to work with:
Items (Contains item prices, descriptions etc.)
Item Ledger Entry (Contains "Remaining Quantity" which is a series of +1 -1 for each item)
The tables are linked by Item No
All i really want to do is multiply the sum of "Remaining Quantity" for each item with the item price but can't figure out how.
Solved! Go to Solution.
you need to relate your tables:
and then the measures are easy
RemainingQuantity = SUM( Transactions[Quantity] )
Value =
SUMX(
Items,
[RemainingQuantity] * Items[UnitPrice]
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
@Anonymous
please post a sample of your data along with expected results
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Sample Data:
No | Description | UnitPrice
10 | Adapter |99
Entry No | Item No | Quantity | Remaining Quantity
1 | 10 | 1 | 1
2 | 10 | -1 | 0
3 | 10 | 2 | 2
Goal:
No | Remaining Quantity | Value(Remaining Quanitity * UnitPrice)
10 | 2 | 198
you need to relate your tables:
and then the measures are easy
RemainingQuantity = SUM( Transactions[Quantity] )
Value =
SUMX(
Items,
[RemainingQuantity] * Items[UnitPrice]
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hello Gandalf,
If you want to calculate inventory value you should calculate that from the Value entry table. It's more accuarate than the item table.
/ J
Hi @Anonymous
Please share your sample table. that would be efficient way to find a solution for you.
Cheers
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 39 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 37 | |
| 35 | |
| 26 |