Forum Discussion

Pavel_Ischenko's avatar
Pavel_Ischenko
Regular Visitor
4 years ago
Solved

Orthogonal filtering

Hello guys! Is there anybody knows how to implement so called "orthogonal" filtering in PBI. What I mean here. This is data visual. There are hundreds of products tested in hundreds locations. In t...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Pavel_Ischenko ,

     

    Try to create this measure

    Measure = 
    VAR _count =
        CALCULATE (
            COUNT ( 'Table'[Result] ),
            FILTER ( ALLSELECTED ( 'Table' ), [TRILD] = MAX ( 'Table'[TRILD] ) )
        )
    VAR _count2 =
        CALCULATE ( DISTINCTCOUNT ( 'Table'[HGHNM] ), ALLSELECTED ( 'Table' ) )
    RETURN
        IF ( ISFILTERED('Table'[HGHNM])&&_count = _count2, 1 )

    Then put the measure into Filters and set as follows

    When filtering, see the results

     

    Best Regards,

    Stephen Tao

     

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