Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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?
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
Solved! Go to Solution.
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.
Apologies @PattemManohar, hopefully this image appears:
@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
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.
@limabravo Sample data will be helpful. Also can't able to view your screenshot. Please use "Photos" option available while posting images.
Proud to be a PBI Community Champion
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 39 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |