Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mheadland
Frequent Visitor

Stock Counting Month-by-Month

Hi all,

 

I am currently trying to build a stock report and I need a stacked column chart that shows month by month what we have in stock. In order for something to be counted as stock it needs to "WS" before the start of a month and "R" on or after the start of a month.

 

Currently, I have 48 individual calculations like this:

Mheadland_0-1700734012068.png

and I am wondering if there is a formula I could use to automate this so I don't have to do every month individually. 

 

I am hoping to get a final product that looks something like this:

Mheadland_2-1700734279667.png

but currently I am not sure if this is even possible due to the fcator of needing to filter each column for specfic dates. 

 

Please could anyone support me with this?

 

Thank you in advance for your help!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Mheadland 
It seems weird that you have to create individual logic for every column.
It seems that you just have to create the right data model with dimensions tables,

take a look at the linked tutorials:

https://www.youtube.com/watch?v=islhUWaCiJ0&t=3449s

https://www.youtube.com/watch?v=1Z_f6jkjprM

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Mheadland ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Ritaf1983
Super User
Super User

Hi @Mheadland 
It seems weird that you have to create individual logic for every column.
It seems that you just have to create the right data model with dimensions tables,

take a look at the linked tutorials:

https://www.youtube.com/watch?v=islhUWaCiJ0&t=3449s

https://www.youtube.com/watch?v=1Z_f6jkjprM

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.