Forum Discussion

obriaincian's avatar
obriaincian
Resolver I
4 years ago
Solved

Power BI - Filtering Dates

I have a Power BI related question. I am currently using the below measure to filter dates. What I am attempting to do is filter on any dates from the previous month up to todays date. (Note that the...
  • smpa01's avatar
    smpa01
    4 years ago

    obriaincian  I misread the Q. There is an easier filter expression like the following

    Table = FILTER(Actuals,[activity_date]>=EDATE(DATE(YEAR(TODAY()),MONTH(TODAY()),1),-1))

     

    Measure = calculate(<aggregation>,FILTER(Actuals,[activity_date]>=EDATE(DATE(YEAR(TODAY()),MONTH(TODAY()),1),-1)))