Forum Discussion

basirve's avatar
basirve
Helper III
5 years ago
Solved

Relative Date Not Filtering - Based On current entire month

Dear Experts,

 

In My report i kept date is a relative date filter on report level and use to fetch last 14 months and data is not fetching for Current mpnth last date inn cureent month and when I kept  is in this month and getting only current month but I need to achive last 14 months + Current month last date.

 

 

I would like to achive date range on relativedate fileter 10/1/2019 to 12/31/2020.

 

Please suggest a solution on this.

Thanks & Regards,

Venkat.

  • Hi, basirve 

    As a workaround  you can try to create codes as below:

    Measure:

     

    Begindate = EDATE(DATE(YEAR(TODAY()),MONTH(TODAY()),1),-14)
    Enddate = EDATE(DATE(YEAR(TODAY()),MONTH(TODAY()),1),1)-1

     

     

    (As of  now,we can't use measure  value in Page Level Filter. This feature is not supported yet. You can review this feature request and vote it)

     

    So here we create  a page filter control using  calculated column rather than measure:

     

    flag = 
    IF ( Table1[Date] >= [Begindate] && Table1[Date] <= [Enddate], 1, 0 )
    

     

    Then apply it to page filter pane:

     

    Ps.Since we are using a calculated column, it is recommended to refresh the report manually every time you open the report to ensure that the data in the calculated column is timely.

     

    Best Regards,
    Community Support Team _ Eason
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies

  • v-easonf-msft's avatar
    v-easonf-msft
    Community Support

    Hi, basirve 

    As a workaround  you can try to create codes as below:

    Measure:

     

    Begindate = EDATE(DATE(YEAR(TODAY()),MONTH(TODAY()),1),-14)
    Enddate = EDATE(DATE(YEAR(TODAY()),MONTH(TODAY()),1),1)-1

     

     

    (As of  now,we can't use measure  value in Page Level Filter. This feature is not supported yet. You can review this feature request and vote it)

     

    So here we create  a page filter control using  calculated column rather than measure:

     

    flag = 
    IF ( Table1[Date] >= [Begindate] && Table1[Date] <= [Enddate], 1, 0 )
    

     

    Then apply it to page filter pane:

     

    Ps.Since we are using a calculated column, it is recommended to refresh the report manually every time you open the report to ensure that the data in the calculated column is timely.

     

    Best Regards,
    Community Support Team _ Eason
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.