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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RichOB
Post Partisan
Post Partisan

I need some help getting the average for an existing measure

Hi, I need to get the average Days_Open between 01/04/2024 and 30/07/2024. My calculation gives me the Days_Total of 44, but how can I then turn that into an average please?

 Date_Range =
    CALCULATE(
        SUM('Table'[Days_Open]),
        'Table' [Start_Date]>=DATE(2024,4,1),
        'Table' [Start_Date]<=DATE(2024,7,30)
        )
    )
 
LocationKennelStart_DateEnd_DateDays_Open
Manchester101/04/202410/04/202410
Manchester101/06/202414/06/202414
Manchester101/07/202420/07/202420
Manchester101/08/202420/08/202420
2 ACCEPTED SOLUTIONS
dharmendars007
Super User
Super User

Hello @RichOB , 

To calculate the average Days_Open within your date range (01/04/2024 to 30/07/2024), you can modify your DAX measure by dividing the total Days_Open by the number of rows that fall within the specified range.

 

Average_Days_Open =
DIVIDE(
CALCULATE(
SUM('Table'[Days_Open]),
'Table'[Start_Date] >= DATE(2024, 4, 1),
'Table'[Start_Date] <= DATE(2024, 7, 30)),
CALCULATE(
COUNTROWS('Table'),
'Table'[Start_Date] >= DATE(2024, 4, 1),
'Table'[Start_Date] <= DATE(2024, 7, 30)))

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

LinkedIN 

 

View solution in original post

Anonymous
Not applicable

Hi @RichOB 

 

Thanks for the reply from dharmendars007 .

 

You can also try the following measure:

Date_Range = 
    CALCULATE(
        AVERAGE('Table'[Days_Open]),
        'Table' [Start_Date] >= DATE(2024,4,1),
        'Table' [Start_Date] <= DATE(2024,7,30)
        )

 

Output:

vxuxinyimsft_0-1733967333396.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @RichOB 

 

Thanks for the reply from dharmendars007 .

 

You can also try the following measure:

Date_Range = 
    CALCULATE(
        AVERAGE('Table'[Days_Open]),
        'Table' [Start_Date] >= DATE(2024,4,1),
        'Table' [Start_Date] <= DATE(2024,7,30)
        )

 

Output:

vxuxinyimsft_0-1733967333396.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dharmendars007
Super User
Super User

Hello @RichOB , 

To calculate the average Days_Open within your date range (01/04/2024 to 30/07/2024), you can modify your DAX measure by dividing the total Days_Open by the number of rows that fall within the specified range.

 

Average_Days_Open =
DIVIDE(
CALCULATE(
SUM('Table'[Days_Open]),
'Table'[Start_Date] >= DATE(2024, 4, 1),
'Table'[Start_Date] <= DATE(2024, 7, 30)),
CALCULATE(
COUNTROWS('Table'),
'Table'[Start_Date] >= DATE(2024, 4, 1),
'Table'[Start_Date] <= DATE(2024, 7, 30)))

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

LinkedIN 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors