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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
PHEstaciMa1
Helper I
Helper I

How to calculate latest estimate using DAX

Hi All, I need help in putting a correct DAX on calculating latest estimate of a frequency rate. power bi query 3.JPG

Here's the formula I crafted in EXCEL. 

 

Formula in EXCELFormula in EXCEL

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @PHEstaciMa1 

Try formulas as below:

calculated column:

Manhours2 = 
VAR value1 =
    AVERAGEX (
        FILTER ( 'Table', 'Table'[Manhours] <> BLANK () ),
        'Table'[Manhours]
    )
RETURN
    IF ( ISBLANK ( 'Table'[Manhours] ), value1, 'Table'[Manhours] )

measure:

M_Frequency Rate =
DIVIDE (
    SUM ( 'Table'[Count of Incidents] ) * 1000000,
    SUM ( 'Table'[Manhours2] )
)

183.png

Best Regards,
Community Support Team _ Eason

View solution in original post

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi, @PHEstaciMa1 

Try formulas as below:

calculated column:

Manhours2 = 
VAR value1 =
    AVERAGEX (
        FILTER ( 'Table', 'Table'[Manhours] <> BLANK () ),
        'Table'[Manhours]
    )
RETURN
    IF ( ISBLANK ( 'Table'[Manhours] ), value1, 'Table'[Manhours] )

measure:

M_Frequency Rate =
DIVIDE (
    SUM ( 'Table'[Count of Incidents] ) * 1000000,
    SUM ( 'Table'[Manhours2] )
)

183.png

Best Regards,
Community Support Team _ Eason

Hi @v-easonf-msft adding the creation of calendar table and the initial solution you provided, it solves my issue. thank you very much!

Hi @v-easonf-msft I tried your but somehow the remaining months of 2021 which has no data does not appear in my table after I unpivot the column. You may check the file I uploaded here in this link --> How to calculate latest estimate using DAX

Hi, @PHEstaciMa1 

Not fully sure what you mean. 

Please check the table visual I created.

 

Best Regards,
Community Support Team _ Eason

I see that you have create a calendar table for a period of 2018 to end of 2021, I guess that will be fine. Let me try it again and let you know ASAP. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.