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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Grand Total with Different Calculation

Hi Community,

I have a small requirement regarding having different calculation for each line and the grand total. Please find the link for this file here. For the Grand Total of Labor Run Rate, I want to sum all Labor Run Rate for each project instead of using the current calculation. I appreciate for any help!

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, try with this:

Labor Run Rate =
IF (
    HASONEVALUE ( test[Project Name] ),
    [Avg Month Labor]
        * ( MONTH ( MAX ( test[ECD] ) ) - MONTH ( NOW () ) ),
    SUMX (
        SUMMARIZE (
            test,
            test[Project Name],
            "LR", [Avg Month Labor]
                * ( MONTH ( MAX ( test[ECD] ) ) - MONTH ( NOW () ) )
        ),
        [LR]
    )
)

Regards

 

Victor




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, try with this:

Labor Run Rate =
IF (
    HASONEVALUE ( test[Project Name] ),
    [Avg Month Labor]
        * ( MONTH ( MAX ( test[ECD] ) ) - MONTH ( NOW () ) ),
    SUMX (
        SUMMARIZE (
            test,
            test[Project Name],
            "LR", [Avg Month Labor]
                * ( MONTH ( MAX ( test[ECD] ) ) - MONTH ( NOW () ) )
        ),
        [LR]
    )
)

Regards

 

Victor




Lima - Peru

How can you make this work when adding slicers from dimension tables? Let's say a date slicer. The total is not showing.

Anonymous
Not applicable

@Vvelarde,

Thank you so much for your help! Smiley Happy

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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