Forum Discussion
Data filters
Hi All,
I have a very unique issue.
Is there a way to show all the data irrespective of the filters.
Example: when I pull a column into a visual ( Matrix, Table, etc) it shows 10 different records as there is no filter applied on it.
But when a filter is selected (like Region, Age Band, etc) then the number of records are reducing based on the number of matches. Which is expected behavior after the filter.
Now I want to override this and still see all the 10 records and the corresponding filtered values of unmatched records should be shown as 0.
What should be my possible approach to achieve this.
Any ideas and suggestions will be of great help.
Thanks,
Akash.
Hi akash0800 ,
I would do this:
Create a calculated table of the unique values of the colum in questionColumn Values = DISTINCT ( 'table'[Column] )I would create a measure to show their corresponding values as the original column is being filtered
MyMeasure = CALCULATE ( [My Aggregation], FILTER ( 'Table', 'Table'[Columns] = SELECTEDVALUE ( 'Column Values'[Column] ) ) ) + 0Add the column from the calculated table and MyMeasure to a visual.
The calculated table, since it doesn't have a relationship to the slicer columns, will not be filtered but MyMeasure will be since it is referencing the original column and nothing extra is applied to the formula to affect the context filter (example is the use of ALL).
1 Reply
- danextianSuper User
Hi akash0800 ,
I would do this:
Create a calculated table of the unique values of the colum in questionColumn Values = DISTINCT ( 'table'[Column] )I would create a measure to show their corresponding values as the original column is being filtered
MyMeasure = CALCULATE ( [My Aggregation], FILTER ( 'Table', 'Table'[Columns] = SELECTEDVALUE ( 'Column Values'[Column] ) ) ) + 0Add the column from the calculated table and MyMeasure to a visual.
The calculated table, since it doesn't have a relationship to the slicer columns, will not be filtered but MyMeasure will be since it is referencing the original column and nothing extra is applied to the formula to affect the context filter (example is the use of ALL).