Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
wpf_
Post Prodigy
Post Prodigy

Can't get a related column

I have table A and table B.  They are related via the fields tableA(dayOff) and tableB(value).   dayOff is a calculated column and value column is built from a calculated table B.  

 

I tried several approaches to try to get 'value':

 

1)calculated column in table A:    RELATED(table B[value])

I get error: the column table[value] either doesnt exist or doesnt have a relationship to any  table available in the current context. Table A is the many side and table B is the one side.  I can clearly see and select table[value] in the RELATED function. 

 

2)in a measure

 

FILTER(
ADDCOLUMNS(
SUMMARIZE(
tableA,
"column1",
"column2"
),
"dayOffValue", minx(tableB, related(tableB[value]))
),
filter statements
)
 
With this approach, when typing related, the columns do not pop up.  
 
------------------
What am i doing wrong, how can i get value over from table B into table A?  The relationships are active and its a many to one.  Many on the table A side.  Thanks 
1 ACCEPTED SOLUTION

@richbenmintz 

So from reading through forums, the issue is with mix table types and there seems to be a bug using relate when having directquery and other types of tables.  Thanks. 

View solution in original post

3 REPLIES 3
PVO2
Frequent Visitor

minx(tableB, related(tableB[value])

 

With above syntax youre already iterating the table. So the related function is not needed. If multiple values are returned you might need an arregation.

Hi @wpf_ ,

 

Can you please provide some sample data?



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


@richbenmintz 

So from reading through forums, the issue is with mix table types and there seems to be a bug using relate when having directquery and other types of tables.  Thanks. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors