This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 May 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 |
|---|---|
| 32 | |
| 25 | |
| 24 | |
| 24 | |
| 14 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |