Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello,
I have a model with two datasets (Project and Sales) linked on ID. When I filter my report on Project.ID the query sent to the database has a where caluse (WHERE Project.ID = 123). When I filter on Project.Code the same query gets a where clause (WHERE Project.Code = 'ABC').
How can I force Direst Query to use the ID instead of the Code?
Thanks in advance,
Frank
Solved! Go to Solution.
Hey,
you can't.
Power BI can't know that there is one to one relationship between the two columns even if both columns reside in the same table.
Hey,
you can't.
Power BI can't know that there is one to one relationship between the two columns even if both columns reside in the same table.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 22 | |
| 21 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 45 | |
| 44 | |
| 30 |