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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
limabravo
Regular Visitor

Numeric range slicer acting on two tables

Hello,

I would be grateful if anyone could help with the following problem.

I have two tables which both contain a column with numeric data (data type: Decimal number). The numbers in these columns are not unique.

Is it possible to use a slicer to filter both tables as illustrated below?

Oct2018_pic1.png 

I was thinking along the lines of creating a new table with a list of all unique values from Column B of both tables. However, when I tried to do this with values from Table 1 only (TableValues = DISTINCT(Table_1[Column_B])) and then tried to create a 1:many relationship between this new table and Table_1[Column_B], I got the following error:

“You can’t create a relationship between these two columns because one of the columns must have unique values”

Any help would be much appreciated.

Regards,

Lloyd

1 ACCEPTED SOLUTION
rafaelmpsantos
Responsive Resident
Responsive Resident

Hi,

 

You are right you need to create a new dimension table and connect your 2 old table to this new one. And this new one will be the data in the slicer.

The best way to create it is in power query. Right Click on the column header that you want to be your dimension and click "Add as new query". 

go to new query in the menu chose "To Table" , right click on the collumn header again and remove duplicates.

View solution in original post

5 REPLIES 5
limabravo
Regular Visitor

Apologies @PattemManohar, hopefully this image appears:

 

Oct2018_pic1.png

 

@rafaelmpsantos - I tried the steps you listed but I still get the “You can’t create a relationship between these two columns because one of the columns must have unique values” error when trying to create a relationship.

Now i see that you have a null in your collumn and it is the error message cause.

Clean null rows, or replace null for 0

Many Thanks @rafaelmpsantos - all works OK now

rafaelmpsantos
Responsive Resident
Responsive Resident

Hi,

 

You are right you need to create a new dimension table and connect your 2 old table to this new one. And this new one will be the data in the slicer.

The best way to create it is in power query. Right Click on the column header that you want to be your dimension and click "Add as new query". 

go to new query in the menu chose "To Table" , right click on the collumn header again and remove duplicates.

PattemManohar
Community Champion
Community Champion

@limabravo Sample data will be helpful. Also can't able to view your screenshot. Please use "Photos" option available while posting images.





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

Proud to be a PBI Community Champion




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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