Forum Discussion

ES_TH's avatar
ES_TH
Frequent Visitor
2 years ago
Solved

PowerBi Matrix Table - Compare 2 different variables of same object

Hi,   I am using PowerBi and am trying to solve a problem of comparing the outcomes of 2 columns that are showing the same object but with 2 possible outcomes. Basically it's almost a what if sce...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi ES_TH 

     

    For your question, here is the method I provided:

     

    First, go to the power query and Unpivot Columns for Apples and Apples-1.

     

     

     

    Create a measure.

     

    Measure = 
        CALCULATE(
            COUNT('Table'[Attribute]), 
            FILTER(
                'Table', 
                'Table'[Attribute] = MAX('Table'[Attribute]) 
                && 
                'Table'[Value] = MAX('Table'[Value])
            )
        )

     

    Here is the result.

     

     

    Regards,

    Nono Chen

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