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
Kpham
Resolver I
Resolver I

totals/rollup of a measure

 

 

 

 

Hello Community,

 

I need your help. I'm trying to make a measure that compares two values on item level and dependent business rules we decide which value to use . On item level I got the right amount, but the total of the column is not correct. The items rollup to a header and also this total is not what I expect to be. How can I improve the syntax so the rollup/totals will show the expected amount

Kpham_0-1653425761384.png

 

 

 

ETC Engineering Costs = IF (
    CONTAINS ( 'PS ProjectResults', [ETC ENG Flag], "X" ),
    [ACT Engineering Costs To be delivered],
    IF (
        [ACT Engineering Costs To be delivered] > [PLAN Engineering Costs To be delivered],
        [ACT Engineering Costs To be delivered],
        [PLAN Engineering Costs To be delivered]
    )
)
ACT Engineering Costs To be delivered = 
CALCULATE (
    SUM ( 'PS ProjectResults'[Engineering Costs] ),
        FILTER (
        'PS ProjectResults',
        'PS ProjectResults'[Value Type Description] = "Actual")
    )



PLAN Engineering Costs To be delivered = 
CALCULATE (
    SUM ( 'PS ProjectResults'[Engineering Costs] ),
        FILTER (
        'PS ProjectResults',
        'PS ProjectResults'[Value Type Description] = "Plan")
    )

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User
1 REPLY 1
Greg_Deckler
Super User
Super User

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.