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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.