Home > Software design >  Power BI URL filter parameter - Date filter
Power BI URL filter parameter - Date filter

Time:08-17

I am new to using filter parameters in the source URL for power BI queries. I have successfully applied some fixed date filters, e.g. ?$filter = CURDATE ge 2022-01-01T00:00:00Z.

Can someone please help me defining the correct filter parameters for CURDATE greater or equal to (today-90 days), i.e. the filter parameter equivalent to ">= Date.AddDays(DateTime.FixedLocalNow(),-90)"

I need to apply the data in the URL as the source data is huge and server performance is poor whilst I GET the data from the server. Applying the filter in the URL reduces the size of the GET command.

CodePudding user response:

If CURDATE is already configured as a date, you can simply go to Date Filters -> In the Previous:

enter image description here

And then define the period, for instance, previous 90 days:

enter image description here

  • Related