I'm trying to filter values in my table based on a date field in Power Query Editor. The dates that need to be included are dependent on a second column, indicatorCode. I've tried the code below but can't get it to work. Is this possible and if so, how?
= Table.SelectRows(Source,((each [EndDate] < #date(2023, 7, 1) and [IndicatorCode] = "CDBR:137"), (each [EndDate] < #date(2023, 8, 1) and [IndicatorCode] <> "CDBR:137")))