Skip to main content

Power BI

New

Relative Date Filter Relative to Data

Vote (41) Share
's profile image

on 08 May 2017 11:34:26

Relative Date Filter option is a great idea, however, not all Date data is current date and time. What if your data is for the period, for example, January 2016 to December 2016. I want to be able to set the date that the Relative Date should be relative to. The easiest solution would be for Power BI to grab the last date value from the data set (using this same example, maybe it would be 31 December 2016) and then use the same relative functions to apply to the data set. So if I wanted the last 3 months, it would be October, November and December 2016.

Comments (6)
's profile image Profile Picture

5e3ef039 46d2-4e1e-9397-4ebd7fcc0d0e on 05 Jul 2020 23:53:59

RE: Relative Date Filter Relative to Data

The relative data filter is just working wonders. I love addition of the seven filters and makes it so easy for auto update and don't have to make changes each month. However we have current month "in this month", last month, "in the last = 1 calendar month" and we have current month last year, but that option is not available in relative data filer. It will be great that we can add "in this month" and the next filter is "in the last = 1 year" Looking forward to adding this soon. Or if we can enter -1 or in the last -13 months to show same month last year, etc.

's profile image Profile Picture

bb186230 fbe9-4fe4-b238-a7b45abdda8e on 05 Jul 2020 23:52:37

RE: Relative Date Filter Relative to Data

Also chiming in from a financial services firm. Yes, this functionality is key to us being able to do historical financial reporting in Power BI. Not having this is very tough and has us scrambling with limited success for workarounds.

's profile image Profile Picture

15714286 c45c-405b-93ea-9ef7f14bd8f8 on 05 Jul 2020 23:29:48

RE: Relative Date Filter Relative to Data

Adding the possiblity to add a measure which calculates the date from which the relative dates are computed would make this an excellent feature. Almost all financial reports are reported on a report date, not today, so showing the last 12m from report date (selected in the report) is necessary and very difficult to implement currently!

's profile image Profile Picture

1834a2d3 e12b-4340-b0fa-d88009e5123c on 05 Jul 2020 23:14:03

RE: Relative Date Filter Relative to Data

This is in particular something that you need to have in those scenarios when you have an approved period (true/false) flag on the dates. I most of the cases I work with, the companies has maybe the 2nd-8th workday in a month as their approvaldate. I need to "switch" over to right period when that date kick in, not before.

's profile image Profile Picture

c0ee821c 34d6-4e5c-8b18-635cb8b3695c on 05 Jul 2020 22:51:48

RE: Relative Date Filter Relative to Data

Definitely - using the max date rather than today is essential for any report with update frequency any lower than daily. A lot of our reports are weekly reports so we still need to use DAX in a custom columns to achieve a relative filter.

's profile image Profile Picture

c7b1490e 4afc-434b-913d-1af181e3c714 on 05 Jul 2020 22:47:59

RE: Relative Date Filter Relative to Data

Alternatively, you could have multiple "Relevant Date" options:
- Latest possible date
- Earliest possible date
- Mid point date
- Custom date

The first 3 are self-explanatory, the customer date option would allow you to enter the date directly into the options for what date the filter should use as a relative date.