Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi there,
I don't even know how to start with this measure.
I have a simple dataset, (Fact, Stores, Products, Calendar).
I have created a report page those shows products by Store that have Zero SOH (Stock On Hand) as of the last date within the Fact table. I would like to calculate the number of consecutive days that the Product in a store has had a Zero Stock on Hand value (SOH is a column in the fact table as is Date.
I have been able to calculate how many days within a range have has zero stock, but I need to calculate the consecutive days.
Example if product X in store A has a SOH value of 12 on the 13th, then zero on the 14th, 15th, 16th, the result should be 3 (14th-16th).
I have no idea how to even start figuring this out.
Hi @MarkCBB,
There is almost the same requirement in this thread. Please check out the demo there. If you'd like more support, please provide a dummy sample file.
Best Regards,
Dale
Hi @MarkCBB
Can you please share some sample data and the expected result here. Or share the pbix file
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |