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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
naledi_h
Helper I
Helper I

Same slicer on two tables with different structures?

I am new to Power BI. I have two tables with the same information but in different structures. There might be better ways to set this up but this is the way it is at the moment. I need to use a single slicer to filter both of these tables at the same time. For instance on age > age range. The two tables currently have no relationship. I have seven different demographic categories, with around 5 response options in each. 

 

For table 1, the age filter will just filter out one of the values for that respondent but leave other values for that respondent in the view. The filter works at the demographic response level. 

For table 2, the age filter will filter out the whole respondent. The filter works at the respondent level. 


What is the best approach to doing this? 

naledi_h_0-1642174492247.png

 

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @naledi_h 

 

Can you provide a simple PBIX file for testing? What do you expect the output to look like, preferably with pictures. Looking forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

naledi_h
Helper I
Helper I

Hi @lbendlin , thanks for your response. The problem is how to connect the two, since it's not just the age filter. It's several columns in one table that correspond to just one column in the other.

I believe a solution like this one might work, but not sure how to do this in Power BI https://naledi.co.uk/blog/next-level-lod-filtering

Same approach. This is called normalization. Extract dimension columns into their own tables.

lbendlin
Super User
Super User

The best approach is to treat both tables as independent fact tables.  Create a dimension table that distinctly combines the common field (in your case the age filter)* and then control both your fact tables from that dimension table.

 

* preferably in Power Query, but can also be done as a calculated table in DAX

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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