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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I need to create a calculation for stock turns. This calculation is based on the previous 12 months sales divided current month stock value.
Current month = SUM(Stock[Value])
Sales = SUM(Sales[Cost])
I can do this for the current month but I would also like to have a historical data that follows the stock report date
Solved! Go to Solution.
Hello @PhillipB ,
Create a measure to calculate sales for the previous 12 months and then Stock Turns measure, which divides the sales of the previous 12 months by the current stock value
Sales_Last12Months =
CALCULATE(SUM(Sales[Cost]),DATESINPERIOD('Calendar'[Date], MAX('Calendar'[Date]),-12,MONTH))
Stock_Turns =
DIVIDE([Sales_Last12Months],SUM(Stock[Value]),0)
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
Thanks worked nicely, had to change the way I used it and made it in to a summary table as I had some additional constraints with how the data relationships were set up.
Hello @PhillipB ,
Create a measure to calculate sales for the previous 12 months and then Stock Turns measure, which divides the sales of the previous 12 months by the current stock value
Sales_Last12Months =
CALCULATE(SUM(Sales[Cost]),DATESINPERIOD('Calendar'[Date], MAX('Calendar'[Date]),-12,MONTH))
Stock_Turns =
DIVIDE([Sales_Last12Months],SUM(Stock[Value]),0)
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 77 | |
| 41 | |
| 26 | |
| 26 |