cancel
Showing results for 
Search instead for 
Did you mean: 
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
New Member

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. 

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors