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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey guys,
How could I calculate the ARR value from the previous year to the current year?
For example, we are in the year 2022, so the ARR would be for the year 2021. I made a measurement, but I'm not sure it's correct. Because through this ARR measure, I want to count how many franchise had an ARR greater than 1 million.
Solved! Go to Solution.
HI @Anonymous,
You can try to use the following measure formula if it helps:
ARR =
VAR currDate =
MAX ( 'dCalendário'[Ano] )
VAR prevDate =
DATE ( YEAR ( currDate ) - 1, MONTH ( currDate ), DAY ( currDate ) )
VAR Acumulado =
CALCULATE (
[Faturamento],
FILTER ( ALLSELECTED ( 'Fact' ), 'Fact'[Ano] <= currDate )
)
VAR AcumuladoPerdido =
CALCULATE (
[Faturamento],
FILTER ( ALLSELECTED ( 'Fact' ), 'Fact'[Ano] <= prevDate )
)
RETURN
Acumulado - AcumuladoPerdido
Notice: you can replace the 'fact' table to the table which your formula calculated.
In addition, I'd like to suggest you take a look at the power bi star schema relationship to optimize your table mappings.
Understand star schema and the importance for Power BI - Power BI | Microsoft Docs
Regards,
Xiaoxin Sheng
HI @Anonymous,
You can try to use the following measure formula if it helps:
ARR =
VAR currDate =
MAX ( 'dCalendário'[Ano] )
VAR prevDate =
DATE ( YEAR ( currDate ) - 1, MONTH ( currDate ), DAY ( currDate ) )
VAR Acumulado =
CALCULATE (
[Faturamento],
FILTER ( ALLSELECTED ( 'Fact' ), 'Fact'[Ano] <= currDate )
)
VAR AcumuladoPerdido =
CALCULATE (
[Faturamento],
FILTER ( ALLSELECTED ( 'Fact' ), 'Fact'[Ano] <= prevDate )
)
RETURN
Acumulado - AcumuladoPerdido
Notice: you can replace the 'fact' table to the table which your formula calculated.
In addition, I'd like to suggest you take a look at the power bi star schema relationship to optimize your table mappings.
Understand star schema and the importance for Power BI - Power BI | Microsoft Docs
Regards,
Xiaoxin Sheng
@Anonymous Its working.
Thank you
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |