Forum Discussion

streamly's avatar
streamly
Regular Visitor
6 years ago
Solved

Compare 2 Table columns based on filter applied

Hi Everyone!   I have 2 Tables that i want to compare the 2 columns based on the filter/slicer applied.   Table 1: Date Name Email Task 01/25/2020 A Email A Task 1 01/25/2020 A ...
  • v-frfei-msft's avatar
    v-frfei-msft
    6 years ago

    Hi streamly ,

     

    A sample for your reference.

    Measure = 
    VAR se =
        SELECTEDVALUE ( 'date'[Date] )
    VAR yms =
        YEAR ( se ) * 100
            + WEEKNUM ( se )
    VAR ymc =
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER (
                'Table',
                YEAR ( 'Table'[Date] ) * 100
                    + WEEKNUM ( 'Table'[Date] ) = yms
            )
        )
    RETURN
        IF ( ymc = BLANK (), "N", "Y" )
    

     

    Pbix as attached.