Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
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 I have two direct query's imported into PBI all good.
I am trying to retrieve a Value field from Table 1 to Table 2 using Common ID field column in both tables.
I am applying Lookupvalue but it is not allowing me to do. Please any help on this.
Or any other alternate.
Last option would be tweaking second query to reteive the value but it is very slow to execute.
Could you please help?
Solved! Go to Solution.
Hi, @Sudhakar510 ;
I did a simple test. If the ID is unique among the three tables, then a one-to-one relationship can be created.
The final output is shown below:
If you don't want to create a relationship , you could create a measure such as:
Measure = CALCULATE(MAX('student'[StudentID]),FILTER('student',[FamilyID]=MAX('family'[FamilyID])))
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Sudhakar510 ;
I did a simple test. If the ID is unique among the three tables, then a one-to-one relationship can be created.
The final output is shown below:
If you don't want to create a relationship , you could create a measure such as:
Measure = CALCULATE(MAX('student'[StudentID]),FILTER('student',[FamilyID]=MAX('family'[FamilyID])))
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the response. I managed to tweak the Query in SQL and then brought direct query so that I can get the column.
I have 3 direct query's in same report but all reports will behave like independantly and not interactive to each other. reason for creating 3 querys because one single query is taking time so split into 3 different querys.
However, all three have common ID's with Unique and no duplicate. Can I still relate each other because it is not allowing me to relate each other.
Hi, @Sudhakar510 ;
As the official document said,
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
If two tables have relationship, you could try to use RELATED() function.such as:
Measure = SUMX(FILTER('Table',RELATED('Table (2)'[name])<>BLANK()),[amount])
If it is not suitable, you could also use IN() or "=".
Or would you mind share simple file or screenshot about your problems?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Sudhakar510 can you try this as a calculated column if Table A and Table B has relationship.
CALCULATE (
MAXX ( 'Table B', 'Table B'[Value] ),
'Table A'[ID] IN VALUES ( 'Table B'[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 |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 30 | |
| 26 | |
| 26 |