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
Anonymous
Not applicable

CALUCLATIONS BASED ON OTHER SIDE OF BRIDGE OR DIRECTLY UNRELATED TABLE

I have following model where i where i have introduced a Bridge table.
Now i want this formula or you can say how i can lookup or write a measure/column in Table B base on any Column in TABLE A.

If(TABLE A[BRKG_DT > TABLE B[START_DT,"yes",No")

M_1_0-1663758095425.png

@Greg_Deckler 

@Rosario 

 



@
@

 

I tried lookupvalue IN TABLE B but it throws circular dependency error .

LOOKUPVALE(TABLE A[BRKGT_DT],TABLE A[JOB_NO],RELATED[BRIDGE TABLE[JOB_NO].

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create calculated column.

Column =
var _index =
MAXX(FILTER(ALL('BRIDGE TABLE'),'BRIDGE TABLE'[JOB_NO]=EARLIER('TABLE A'[JOB_NO])),[JOB_NO])
var _value=
MAXX(FILTER(ALL('TABLE B'),'TABLE B'[JOB_NO]=_index),[START_DT])
return
IF(
    'TABLE A'[BRKG_DT] >_index ,"yes","No")

2. Result:

vyangliumsft_0-1663810257783.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I need to create this column in Table B

v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create calculated column.

Column =
var _index =
MAXX(FILTER(ALL('BRIDGE TABLE'),'BRIDGE TABLE'[JOB_NO]=EARLIER('TABLE A'[JOB_NO])),[JOB_NO])
var _value=
MAXX(FILTER(ALL('TABLE B'),'TABLE B'[JOB_NO]=_index),[START_DT])
return
IF(
    'TABLE A'[BRKG_DT] >_index ,"yes","No")

2. Result:

vyangliumsft_0-1663810257783.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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.