Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
I've found the solution, I leave the code I used for future reference:
@Anonymous ,
You may refer to the following posts.
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 🙂
Any new ideas?
I've found the solution, I leave the code I used for future reference:
Any ideas?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |