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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
zameenakarmali
Frequent Visitor

Calculating ARR

Hi, 

 

I would like to calculate ARR, this is a sum of the ACV for a given month-year.

 

 

I have the following Contract Table:

When the contract ends the Value is 0. 

Client NameClient NoContract NoMonth AddedStarting QuarterEnd QuarterSubscription TypeReport Frequency Per YearMarketACV
Client A100100-1Jan-24Q1 2024Q4 2024One Year subscriptionQuarterlyItaly12000
Client A100100-2Sep-24Q3 2024Q2 2025One Year subscriptionQuarterlyFrance12000
Client B8888-1Apr-24Q2 2024Q1 2026Two Year SubscriptionQuarterlySpain24000
Client C9999-1Aug-23Q3 2023Q2 2024One Year SubscriptionBi-AnnualGermany8000

 

I have created a date table as below:

 

Dim_Date =
VAR _CurrentDate= TODAY()
VAR _CurrentYear = YEAR(_CurrentDate)
VAR _StartYear = YEAR(_CurrentDate) - 5
VAR _EndYear = Year(_CurrentDate) + 3
VAR _StartDate = DATE(_StartYear,1,1)
VAR _EndDate =   DATE(_EndYear,12,31)
VAR _calendar = CALENDAR(_StartDate,_EndDate)
RETURN
    ADDCOLUMNS(
        _calendar,
        "Quarter", "Q" & FORMAT( [Date], "Q yyyy"),
        "Month-Year", FORMAT([Date], "MMM yyyy"),
         "Month No", MONTH([Date]),
         "Month", FORMAT([Date],"mmmm"),
         "Year",FORMAT([Date],"yyyy"),
        "Qtr No", (YEAR([Date]) - _StartYear) * 4 + QUARTER([Date]))
 
 
There is a relationship from Dim_Date Month-Year and Month Added in the Contract Table, 
 
I would like to have a slicer where you can select a select a month-year and the ARR amount is given
 
Below is an example of the snowball for the data
 
The ARR Is the sum of the ACV Values, In Power BI I would just like to eg. Select Jan 24  and it should return the ARR amount as 20000, Please can you let me know how to do this? 
 
 2023202420252026
 JulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMar
       120001200012000120001200012000120001200012000120001200012000               
             120001200012000120001200012000120001200012000120001200012000         
          240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000
 800080008000800080008000800080008000800080008000                     
                                  
                                  
ARR800080008000800080008000200002000020000440004400044000480004800048000480004800048000360003600036000360003600036000240002400024000240002400024000240002400024000
7 REPLIES 7
v-prasare
Community Support
Community Support

Hi @zameenakarmali,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @zameenakarmali,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @zameenakarmali,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

bhanu_gautam
Super User
Super User

@zameenakarmali , Create a measure using

 

DAX
ARR =
VAR SelectedMonthYear = SELECTEDVALUE(Dim_Date[Month-Year])
VAR SelectedDate = MAX(Dim_Date[Date])
RETURN
CALCULATE(
SUM(Contract[ACV]),
FILTER(
Contract,
Contract[Month Added] <= SelectedMonthYear &&
Contract[End Quarter] >= SelectedMonthYear
)
)

 

Create a Slicer: Add a slicer to your report using the Month-Year column from the Dim_Date table. This will allow you to select a specific month-year.

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you for this, 

 

I got the following error: 

 

zameenakarmali_0-1741261782096.png

any ideas? 

@zameenakarmali , This is data type error 

 

Try using

dax
ARR =
VAR SelectedDate = MAX(Dim_Date[Date])
RETURN
CALCULATE(
SUM(Contract[ACV]),
FILTER(
Contract,
Contract[Month Added] <= SelectedDate &&
Contract[End Quarter] >= SelectedDate
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






The issue is that we are comparing the Quarters which is a text field to Month-Year which is a date column 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.