Skip to main content

Power BI

Under Review

Expressions on filters

Vote (98) Share
Vicenç Lahoz's profile image

Vicenç Lahoz on 08 Jan 2015 17:07:05

Allow dynamic filters, for example last month, last year, etc. Or allow expressions similar to those of Reporting Services.

Administrator on 24 Jan 2015 06:27:04

Thanks for the idea, Vicenc! We'll consider it for the future, please add your votes it you agree!

Comments (11)
Vicenç Lahoz's profile image Profile Picture

5080ce94 0b5b-4cca-9ef7-66a608c094e6 on 05 Jul 2020 23:58:55

RE: Expressions on filters

This is a must function. We have to set up our reports on current year and month less or equal than current month.

Vicenç Lahoz's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 23:34:36

RE: Expressions on filters

Please could this be extended to cover all the options in the Format pane, especially the Action options. It would be great to be able to dynamically set a bookmark based on the results of a Dax expression.

Vicenç Lahoz's profile image Profile Picture

b2b9291b 96ee-4d52-8079-fa49c2c6f1a8 on 05 Jul 2020 23:22:04

RE: Expressions on filters

This would be extremely useful to use columns in filter field. (For instance - Current Year or Top Customer). Or even for MTD, QTD metrics where you need to filter on date to see results. Thank you!

Vicenç Lahoz's profile image Profile Picture

d67a6744 af8f-475f-9654-0f9178bf467a on 05 Jul 2020 23:19:09

RE: Expressions on filters

On the Advanced Filters option, add an 'Expression' option. It would allow, for example, to filter by a function like =username () or any other valid DAX expression.

In addition, the expression used to filter could came from an existing measure, so it would ease the case of many visuals using the same Expression filter.

This image gives an overview of the idea:
https://1drv.ms/u/s!AlZdtnb1ar0zg8Fx-wsKJ26OEP0hxQ

Vicenç Lahoz's profile image Profile Picture

ab130498 3fed-4a12-9645-cb62844c1ece on 05 Jul 2020 22:49:51

RE: Expressions on filters

Any Updates?

Vicenç Lahoz's profile image Profile Picture

65cfef2b 1118-44e6-af69-cdbd2501e20f on 05 Jul 2020 22:35:00

RE: Expressions on filters

any update on this?

Vicenç Lahoz's profile image Profile Picture

3a421735 e65c-42a0-a282-be4bf40fa7a7 on 05 Jul 2020 22:31:53

RE: Expressions on filters

I really need to be able to default a Department field's filter to "my department". If I could apply a DAX expression as the filter expression, then I could use the USERNAME () function in DAX and lookup that user's department and default to their department. This would be very powerful.

Vicenç Lahoz's profile image Profile Picture

7311fd6c 01e3-4b96-8ec3-08054c7cad23 on 05 Jul 2020 22:26:48

RE: Expressions on filters

You can create a calculated column with a DAX expression that will allow for dynamic filtering. E.g. in your date table, create a calculated column that shows "Current Month" for the current month, and the month name (Jul 2016, Jun 2016, etc.) if it isn't current. Then you can slice on "Current Month" and never have to update that slicer. Of course, that's not as intuitive as being able to do such an expression right in the filter.

Vicenç Lahoz's profile image Profile Picture

929b9afa d997-4a04-a980-edcd619292a5 on 05 Jul 2020 22:19:01

RE: Expressions on filters

Power BI is currently pretty static. Allowing some dynamic behavior through expressions is a must have for sure!

Vicenç Lahoz's profile image Profile Picture

3f3a32c0 a456-47a8-a657-29c2ee289688 on 05 Jul 2020 22:14:56

RE: Expressions on filters

I need this feature to keep the dashboard shown in mobile app up to date, just showing "current week" etc.
And it has to work throw Enterprise Gateway to SSAS MD!