Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi
I need help to calculate new stock level.
I have 3 tables:
1) inbound (incoming new products to the warehouse)
2) demand (how much demand in qty is expected)
3) stock level (current stock level for 1 date)
i need help to calculate the correct new stock level, which mean i need the "result" from last months new stock level and place it into new stock level static, .. or something.. im not sure but i hope the problem is intuitive, i just need to calculate new stock level by using last months calculation in the next month.
Here is PBI file
https://www.dropbox.com/s/4y23cv00z0y8836/samle%20pbi.pbix?dl=0
and here is pictures in case you cant downloade the file:
the green is right, the red is wrong
in case you cant download the file, its very simple, here is the underlying data:
Solved! Go to Solution.
Hi,
According to your statement, I think you want [new stock level] returns 1840 in Feb 2023.
Try measure as below.
new stock level =
IF (
ISBLANK ( [demand_qty] ),
BLANK (),
CALCULATE (
[inbound_qty] + [stock level static] - [demand_qty],
FILTER ( ALL ( _dimdate ), _dimdate[Date] <= MAX ( _dimdate[Date] ) )
)
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
According to your statement, I think you want [new stock level] returns 1840 in Feb 2023.
Try measure as below.
new stock level =
IF (
ISBLANK ( [demand_qty] ),
BLANK (),
CALCULATE (
[inbound_qty] + [stock level static] - [demand_qty],
FILTER ( ALL ( _dimdate ), _dimdate[Date] <= MAX ( _dimdate[Date] ) )
)
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |