The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I have two tables one table1 have customername,country and states and another table table2 have customer,countryname,statesname and salary.
i have 2 slicers for the columns i have in my table1 and i create a one to many relationship between customername and customer.
now if i select the slicer on country column or states slicer then how powerbi know that it has to look into countryname or statesname column of table2 or both the tables should have the same names .
Hi jatneerjat,
"Values is unique in one column of tableA while values can be found in another column in tableB" will be recognized as one-to-many relationship by power bi. That's how the relationship can be automatically created.
Regards,
Jimmy Tao
Hi @jatneerjat,
If I understood your question Power BI matches tables when the values are equals on both tables. If table 2 has the correspondent value on table 1, you will see the filter working.
It's important to take care about space on text columns, if your columns contains space before/after the values probably you are gonna see nothing returning to you, you have to handle it (Power Query has the "TRIM" function to remove spaces before/after).
User | Count |
---|---|
62 | |
57 | |
54 | |
51 | |
33 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
43 |