This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I have a table that tracks company headcount (Headcount_C) and I also have a Month_Year column and a Rolling_Month column.
I would like to know the difference between each month, using either the Month_Year or Rolling_Month.
Rolling Month Month_Year Headcount_C (Difference)
1 October 2016 6000 -21
2 September 2016 6021 +3
3 August 2016 6018 +1
I am struggling to get this working, I have tried using PreviousMonth and DatesInPeriod, but I can't seem to get the result I want.
I have also surrounded my statement with IF(Headcount_C>0,............
Is there a way to get this working using the rolling month?
All help appreciated.
Hi @RichWyeth,
According to your description, you should be able to use the formula below to create a calculate column in this scenario. (Assume your table is called "Table1".)
Difference =
VAR rm = Table1[Rolling Month]
VAR hc = Table1[Headcount_C]
RETURN
hc
- CALCULATE (
MAX ( Table1[Headcount_C] ),
ALL ( Table1 ),
Table1[Rolling Month]
= rm + 1
)
Regards
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 25 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 46 | |
| 23 | |
| 18 | |
| 18 |