Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
basirve
Helper III
Helper III

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.

 

BB.png

 

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

 

AA.png

Please suggest a solution on this.

Thanks & Regards,

Venkat.

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
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:

60.png

 

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.

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
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:

60.png

 

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.

 

amitchandak
Super User
Super User

@basirve , with relative dat slicer that is not possible.

 

refer this approch https://www.youtube.com/watch?v=duMSovyosXE

 

to default on end date of month follow the approch https://www.youtube.com/watch?v=hfn05preQYA

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.