Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more

Reply
akash0800
Helper I
Helper I

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.

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @akash0800 ,

 

I would do this:
Create a calculated table of the unique values of the colum in question

Column 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] ) )
) + 0

Add 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).










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @akash0800 ,

 

I would do this:
Create a calculated table of the unique values of the colum in question

Column 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] ) )
) + 0

Add 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).










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.