Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Afternoon all, hope you can help out. I am tring to compare two text fields in a column on two different tables and then return a text field value and write it in a column on the first table: Example:
'Table 1'[system_id] =
IF (
DISTINCT('Table 1'[UIC]) = DISTINCT('Table 2'[UIC]),
DISTINCT('Table 2'[system_id]),
BLANK()
)
Error I keep getting is as follows:
DAX:
EVALUATE
'Table 1'[system_id] =
IF (
DISTINCT('Table 1'[UIC]) = DISTINCT('Table 2'[UIC]),
DISTINCT('Table 2'[system_id]),
BLANK()
)
Correlation Id: e07dcf4e-1ad3-9181-2a01-5666123aa645
Error Details: The end of the input was reached.
Can someone provide guidance?
@mikeST DISTINCT returns a table and you can't return a table as a column or measure result. I'm not sure but I *think* you want something like this:
New Column in Table1 =
VAR __ID = [SYSTEM_ID]
VAR __UIC = [UIC]
VAR __OtherUIC = MAXX( FILTER( 'Table2', [SYSTEM_ID] = __ID ), [UIC] )
VAR __Result = IF( __UIC = __OtherUIC, __OtherUIC, BLANK() )
RETURN
__Result
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |