Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Filter Multiple Columns from single table

I have a table RT Hr DB an it has multiple columns. Want to filter column Department=UW and Hour Type=Overtime and sum the Days. This is what I have so far

 

SUMX(FILTER(FILTER('RT Hr DB','RT Hr DB'[Hour Type]="Vacation"), RT Hr DB'[Department]="Underwriting"), 'RT Hr DB[Days])

6 Replies

  • Hello Anonymous 

    Give this a try.

    UW OT = 
    CALCULATE(
        SUM ( 'RT Hr DB'[Days] ),
        'RT Hr DB'[Department] = "Underwriting",
        'RT Hr DB'[Hour Type] = "Overtime")
    • Anonymous's avatar
      Anonymous
      Not applicable

      jdbuchanan71 

       

      I tried this but it still does not give me the right answer.

      • jdbuchanan71's avatar
        jdbuchanan71
        Super User

        Hello Anonymous 

        Please provide some sample data and and example of the expected outcome.