Forum Discussion

3 Replies

  • v-kkf-msft's avatar
    v-kkf-msft
    Community Support

    Hi GX_1 ,

    Try to modify measure Result:

    Result = 
    VAR _Cost =
        SELECTEDVALUE ( 'Table'[Cost] )
    VAR _act = [Actual]
    VAR _forc = [Forecast]
    VAR _targ = [Approved Target]
    VAR _att = 
        IF (
            ISBLANK ( _act ),
            IF ( _Cost = "Forecast",  _forc/ _targ  - 1 ),
            IF ( _Cost = "Actual",  _act/ _targ  - 1 )
        )
    RETURN
        _att

     

    Or create a new measure:

    Measure = 
    CALCULATE(
        SUM('Table'[value]),
        FILTER(
            'Table',
            'Table'[Cost] = "Actual"
            || 'Table'[Cost] = "Forecast"
        )
    ) /
    CALCULATE(
        SUM('Table'[value]),
        FILTER(
            'Table',
            'Table'[Cost] = "Approved Target"
        )
    ) - 1

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

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

  • v-kkf-msft's avatar
    v-kkf-msft
    Community Support

    Hi GX_1 ,

     

    Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

     

    Best Regards,
    Winniz