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
I am trying to recreate some data I had been able to extract in Import mode, but instead using Direct Queries.
In this instance, I have two tables containing hopefully unique values. Currently, they are showing up as a One-To-Many relationship in Power BI (I am uncertain if this is the cause of my problem).
Essentially, I want to see if a unique ID is in Table 1 and in Table 2 (it is not guaranteed to be in both). I have filtered both data sources and given them a relationship. However, when writing measures and attempting to filter only to rows where the unique ID exists in both tables, it still gives me every row in Table 1, even ones without a match in Table 2. I have checked both tables and there definitely is not a match.
This is my DAX formula:
Solved! Go to Solution.
Hi @Anonymous ,
You may change the formula like DAX below, and make sure the Cross filter direction of relationship between the two tables as Both.
WO's in Engineering and IMOS =
CALCULATE (
DISTINCTCOUNT ( 'TRADESOFT - WO'[WoNbr] ),
FILTER (
'TRADESOFT - WO',
'TRADESOFT - WO'[WorkOrdStatusNbr] = 1
&& 'TRADESOFT - WO'[WorkOrdTypeNbr] = 2
),
FILTER ( 'TRADESOFT - JOBS', 'TRADESOFT - JOBS'[JobStatusNbr] = 2 ),
FILTER (
'IMOS - PROADMIN',
ISBLANK ( 'IMOS - PROADMIN'[WoNbr] ) = FALSE ()
&& 'IMOS - PROADMIN'[WoNbr] = RELATED ( 'TRADESOFT - WO'[WoNbr] )
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You may change the formula like DAX below, and make sure the Cross filter direction of relationship between the two tables as Both.
WO's in Engineering and IMOS =
CALCULATE (
DISTINCTCOUNT ( 'TRADESOFT - WO'[WoNbr] ),
FILTER (
'TRADESOFT - WO',
'TRADESOFT - WO'[WorkOrdStatusNbr] = 1
&& 'TRADESOFT - WO'[WorkOrdTypeNbr] = 2
),
FILTER ( 'TRADESOFT - JOBS', 'TRADESOFT - JOBS'[JobStatusNbr] = 2 ),
FILTER (
'IMOS - PROADMIN',
ISBLANK ( 'IMOS - PROADMIN'[WoNbr] ) = FALSE ()
&& 'IMOS - PROADMIN'[WoNbr] = RELATED ( 'TRADESOFT - WO'[WoNbr] )
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |