This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register 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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 25 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |