Forum Discussion

RichOB's avatar
RichOB
Icon for Post Partisan rankPost Partisan
2 years ago
Solved

Need help adding to my existing measure please

I have 2 tables. 1 for the Balance amounts called GL_Entries, 1 for the Categories called Table5.   How can I add "IT Systems" and "Training" to the existing Balance_Income measure below so they ap...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Thanks for the reply fromrajendraongole1 , please allow me to provide another insight:

    HI,RichOB 

    Regarding the issue you raised, my solution is as follows:

    1.First I have created the following table and the column names and data are the data you have given:

     

    2.Next create relationships between tables:

    3. I've provided two measure that fit your needs, and you can choose from them:

    MEASURE = 
    CALCULATE (
        SUM ( GL_Entries[Balance] ),
        KEEPFILTERS ( 'GL_Entries'[Category] IN { "Salaries", "IT Systems", "Training" } )
    )
    Measure2 = 
    CALCULATE (
        SUM ( GL_Entries[Balance] ),
        FILTER (
            'GL_Entries',
            'GL_Entries'[Category] IN { "Salaries", "IT Systems", "Training" }
        )
    )

     

    4.Here's my final result, which I hope meets your requirements.

    Please find the attached pbix relevant to the case.

     

    Best Regards,

    Leroy Lu

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