- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stock in and out
Hi all,
Another begginer question. I am working with products entering and leaving a facility, and I am trying to get the count of stock at any particular date.
I have a stock dimension with product ID, category, date of entry and the date of leaving, as such:
And I want to know the total count of each category at any given time. This is what the desired outcome would be (I've entered this manually):
I have already created a calendar table, so I only need to add the two columns with counts for A and B.
Hope it makes sense, and as always.
many thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've found the solution, I leave the code I used for future reference:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Anonymous ,
You may refer to the following posts.
- https://community.powerbi.com/t5/Desktop/Trend-from-History-Table/m-p/200304#M88115
- https://community.powerbi.com/t5/Desktop/Create-date-Parameter-asat-date-to-get-active-customers/m-p/311306#M137927
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply. Unfortunately that doesn't seem to work for me.
I am no expert in DAX, so maybe I am inputing the code incorrectly, however, even that measure would not provide me with the solution I need, which is a different count for each category, not just a total count.
Would really appreciate some help 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any new ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've found the solution, I leave the code I used for future reference:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any ideas?

Helpful resources
User | Count |
---|---|
121 | |
105 | |
84 | |
52 | |
46 |