Forum Discussion

jkesavan's avatar
jkesavan
Frequent Visitor
5 years ago
Solved

Adding two values from a generated matrix table

Hi is there currently a way to just add two values made from a matrix table? Its relatively easy in excel as you just add two rows but struggling to figure this out in PowerBI. For example below:

 

i want to add the Early and Late columms. so the Diamond section will just produce 69.2% (8.55 + 60.65). 

 

Thank you. 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi jkesavan 

    Due to I don't know your data model, I build a measure and see the result you want in column subtotal.

    Measures:

    Measure = 
    CALCULATE(SUM('Table'[Value1]),FILTER('Table','Table'[Status]=MAX('Table'[Status])))/100
    Measure2 = SUMX(FILTER('Table','Table'[Section] = MAX('Table'[Section])),[Measure])

    Result:

    If this reply still couldn't solve your problem, please provide me with your pbix file by your Onedrive for Business.

     

    Best Regards,

    Rico Zhou

     

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

     

3 Replies

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi jkesavan 

        Due to I don't know your data model, I build a measure and see the result you want in column subtotal.

        Measures:

        Measure = 
        CALCULATE(SUM('Table'[Value1]),FILTER('Table','Table'[Status]=MAX('Table'[Status])))/100
        Measure2 = SUMX(FILTER('Table','Table'[Section] = MAX('Table'[Section])),[Measure])

        Result:

        If this reply still couldn't solve your problem, please provide me with your pbix file by your Onedrive for Business.

         

        Best Regards,

        Rico Zhou

         

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