cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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."
Connect to me on LinkedIn || Need consulting? Hire me for a Power BI gig on UpWork.
Learn with me on YouTube @PowerBITambayan.

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."
Connect to me on LinkedIn || Need consulting? Hire me for a Power BI gig on UpWork.
Learn with me on YouTube @PowerBITambayan.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors