Forum Discussion

carloswalder's avatar
carloswalder
Copper Contributor
Jan 21, 2022
Solved

How can I filter a table by two columns in Power BI

Hi, I have a table of order quantities, which has a date column (format: date) and a country column (text). I would like to filter this column by not using e.g. orders from US in second quarter of ...
  • mtarler's avatar
    mtarler
    Jan 21, 2022
    I would suggest creating a helper column with a formula like:
    ="Q"&INT(MONTH([Date])/4)+1 & "-" & YEAR([Date]) & "-" & [Country]
    Then filter out "Q2-2021-US"

Resources