Forum Discussion
Date filter breaks ALL
Hi v-piga-msft,
I don't want to clear the filter from the date column, I want that one to be kept, and yes I can clear all filters on the table but again this is not what I want, I want to just clear the filter from the category column and keep any filters from the date column.
I don't get this problem if i try to use something other than a date field, and no problem if i clear the filters from the whole table.
Hi nickdewitt,
Sorry for misunderstanding before.
I have reported this issue internally CRI: 82109701.
Will update here once I get any information.
Best Regards,
Cherry
- nickdewitt8 years agoFrequent Visitor
- v-piga-msft8 years agoResident Rockstar
Hi nickdewitt,
By confirmed by PG, this is the designed behavior of Power BI.
Multiple single column filters from a single table are combined into a single filter of multiple columns. So when ALL function removes filter on a particular column, the combined filter is projected to the remaining columns. Since the combined filter preserves the correlation between the columns in the underlying table, the projection will reserve the effect of the removed column. In this example, if user sets filters on both [category] and [date] columns, the combined filter of two columns only contain combinations of rows exist in the underlying table. Since each category value corresponds to a distinct set of the date values, the combined filter only contain dates corresponding to the selected category value, as a result, even though ALL function removes the category filter, the surviving date values still only correspond to the previously selected category value.
Marco Russo who will write a blogpost on this topic in sqlbi.com soon.
Best Regards,
Cherry
- nickdewitt7 years agoFrequent Visitor
Hi v-piga-msft,
If this is the case, then why does it only happen on a date column and not on a text or number column? It doesn't seem to make sense..
Kind regards,
Nick