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!
I am looking for a way to count the number of days in a period where a part has had no stock.
Below you will find a short summary of the related tables:
Parts:
Partnumber
Description
Stock:
Stockdate
Partnumber
Quantity
Date:
Date
If a part has had no stock on a certain date there will be no record in the Stock table for that combination of Partnumber and Stockdate.
I would like to create a visual based on a table with all parts and in a column I would like to show the number of days in that period where there was no stock for that part. What would be the best way to do so?
Solved! Go to Solution.
@markblom
Add the Part Number from the PArts table and the following measure to table visual:
Days Without Parts = COUNTROWS (Dates) - COUNTROWS (Stock)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@markblom
Add the Part Number from the PArts table and the following measure to table visual:
Days Without Parts = COUNTROWS (Dates) - COUNTROWS (Stock)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I am struggling with my account to this community so this reply comes from a different user.
Anyway: thanks for the solution!
Mark
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 |
---|---|
52 | |
27 | |
24 | |
13 | |
9 |
User | Count |
---|---|
74 | |
58 | |
47 | |
16 | |
12 |