Forum Discussion

pbiandt's avatar
pbiandt
Frequent Visitor
6 years ago
Solved

Date filter month and day

Is there a way to filter just the month and day (eg. Jan 1 - Mar 23 or Feb 15-Mar 15). I have data from past 10 years and would like to look at specific date ranges within the year for each year. So ...
  • V-lianl-msft's avatar
    V-lianl-msft
    6 years ago

    Hi pbiandt ,

     

    Sorry, I didn't fully understand you before.

    I created a calendar table and used it as a slicer, then recreated the measure to calculate the sum.

    sum_value = CALCULATE(SUM('data'[Amount]),FILTER(data,data[month_day]in VALUES(('date'[month_day]))))

    The sample pbix has been updated

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.