Forum Discussion
Is Advanced Filtering with logical operators across multiple columns possible in PBI Desktop?
When creating the measure as you´ve mentioned:
Measure =
IF(AND(MAX('Table'[Date])>DATE(2019,10,01),OR(MAX('Table'[Category]) = "A",MAX('Table'[Location])="L2")),1,0)
Why do you calculate the max of "Date" column?
Measures live in a filter context. They need to calculate something. "MAX" is picked because it is convenient (especially for the Totals) but you can use any other aggregation too.
- Anonymous1 year agoNot applicable
Ok thanks! But if I want to get those rows in which Date is equal to 2019 instead of greater than?
If I use MAX(), since there are dates of 2020 in the column, it won´t return those rows from 2019, though my condition is that the year has to be 2019.- lbendlin1 year agoSuper User
use CALENDAR or DATESBETWEEN to specify date range filters, or - if you have it - put a filter on the Year column in your calendar table.
- Anonymous1 year agoNot applicable
The problem in my case is that I want to show a visualization of a table and I want the user to be able to change its filter dynamically, but the filter should works as follows:
(columnA > [slicerValue] && columnB > [slicerValue]) || (columnA = [slicerValue] && columnC = [slicerValue])I want to be able to change slicerValue dynamically. Do you knwo how can I achive this?
Thanks in advance!