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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi everyone,
I'm trying to calculate an inventory turnover with Power BI.
I want to divide those two columns : Volume that we have in stocks / volume that we sold (for that, it is ok, my measure is a simple divide)
And then I want to divide it by the last month of the last year
I've tried this, but it doesn't work :
Solved! Go to Solution.
Hello @Anonymous
If my post helped you, please give me a 👍kudos and mark this post with Accept as Solution.
If I understood you correctly, this should be your solution.
VAR LastYear = MAX('Company$Commision Entries'[Année nbre])
VAR MaxMonth =
CALCULATE(
MAX('Company$Commision Entries'[Mois]),
FILTER(
'Company$Commision Entries',
'Company$Commision Entries'[Année nbre] = LastYear
)
)
RETURN
DIVIDE(
[Volume in Stock],
[Volume Sold] * MaxMonth
)
Best regards from Germany
Manuel Bolz
🟦Follow me on LinkedIn
🟨How to Get Your Question Answered Quickly
🟩Fabric Community Conference
🟪My Solutions on Github
InventoryTurnoverLastMonthLastYear = //Try this might help you
VAR LastYear = CALCULATE(
MAX('Company$Commision Entries'[Année nbre]),
ALL('Company$Commision Entries')
)
VAR MaxMonthLastYear = CALCULATE(
MAX('Company$Commision Entries'[Mois]),
FILTER(
'Company$Commision Entries',
'Company$Commision Entries'[Année nbre] = LastYear
)
)
RETURN
DIVIDE(
CALCULATE(
SUM('Company$Commision Entries'[VolumeInStock]),
FILTER(
'Company$Commision Entries',
'Company$Commision Entries'[Année nbre] = LastYear &&
'Company$Commision Entries'[Mois] = MaxMonthLastYear
)
),
CALCULATE(
SUM('Company$Commision Entries'[VolumeSold]),
FILTER(
'Company$Commision Entries',
'Company$Commision Entries'[Année nbre] = LastYear &&
'Company$Commision Entries'[Mois] = MaxMonthLastYear
)
),
0
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Hello @Anonymous
If my post helped you, please give me a 👍kudos and mark this post with Accept as Solution.
If I understood you correctly, this should be your solution.
VAR LastYear = MAX('Company$Commision Entries'[Année nbre])
VAR MaxMonth =
CALCULATE(
MAX('Company$Commision Entries'[Mois]),
FILTER(
'Company$Commision Entries',
'Company$Commision Entries'[Année nbre] = LastYear
)
)
RETURN
DIVIDE(
[Volume in Stock],
[Volume Sold] * MaxMonth
)
Best regards from Germany
Manuel Bolz
🟦Follow me on LinkedIn
🟨How to Get Your Question Answered Quickly
🟩Fabric Community Conference
🟪My Solutions on Github
Thank you for your help !! it works 😄
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 104 | |
| 39 | |
| 35 | |
| 25 |