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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
1 REPLY 1
Greg_Deckler
Super User
Super User

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.