Forum Discussion

PowerBI-Newbie's avatar
6 years ago
Solved

Help with Multiple Filters from User Selection Slicers

Hi, I have a calendar table which has columns Year and Period that I'm using as slicers:   I'm using these to filter out data from 6 data tables; these 6 tables also contain the columns Year...
  • Greg_Deckler's avatar
    Greg_Deckler
    6 years ago

    A bit tricky, but a disconnected table trick and this measure later and I think I got it. PBIX is attached:

    SIP Actual Line Chart = 
        VAR __Year = MAX('SIP_Activities'[Year])
        VAR __Period = MAX('SIP_Activities'[Period]) + 0
        VAR __LinePeriod = MAX('Periods'[Period]) + 0
        VAR __Table = FILTER(ALL(SIP_Activities),[Year] = __Year && [Period]+0 <= __Period)
        VAR __Table1 = FILTER(__Table,[Period]+0 = __LinePeriod)
    RETURN
        SUMX(__Table1,[Actual-LD]) + SUMX(__Table1,[Late Delivery])