Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
I am running a reconciliation exercise between two databases in Power BI. I have chosen direct query mode due to the large volume of data. Below is a simplified model for demonstration, where both databases (Table 1 & 2) have:
My ask is for matching the tables by “ID” to show “Matched” & “Mismatched” via direct query. I think there is two options to do that:
I would like to use the 2nd option, DAX. Tried already but not all functions would work with Directquery mode.
Here is my attempt but via Import Mode, which works:
Matching Records :=
VAR _matchinginT2 = LOOKUPVALUE(table1[id],table1[id],table2[id])
Return
IF(NOT(ISBLANK(_matchinginT2)),”Matched”,”Mismatched”)
Unfortunately, the LOOKUPVALUE does not work in direct query.
Any input is highly appreciated.
Thanks
Hi @H_insight ,
Can you share some sample data?
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Best Regards,
Jay
Hi @Anonymous ,
It's a challenge to share a sample file when my question is about DIrectQuery? The connection is direct to the SQL server and not an import model. Hence why I shared a screen of the current model.
For now, I have built a custom SQL code to get me the join between the two tables. Shame it can't be done via DAX "Yet"! Thanks for the follow up 👍
Best Regards,
Hesham
Try a measure like
countx(filter(values(Table1[ID] ), Table1[ID] = max(Table2[ID])),Table1[ID])
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 42 | |
| 35 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |