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
FRG
Resolver I
Resolver I

Relationship change the result of a formula

Hi everybody,

I have 2 tables with a relationship with the 2 IDRun columns

1. Scalings:

 Capture.JPG

 

2. And ProdRun

Capture1.JPG

I made a calculated column to merge IDRun and RunSpecies in the 2 tables: ColonneCombine.

I made another calculated column comparing IDRun and ColonneCombine of both tables with this formula:

if(and(Scalings[IDRun] = RELATED(Prodrun[idRun]);Scalings[ColonneCombine] = RELATED(Prodrun[ColonneCombine2]));1;0)

 

With this column I want to create a new one who gives me the «reel IDRun». All these steps works well.

Now I want to change the relationship for the new «reel IDRun» column but once its done, the formula up here return 0 for each rows.

With no change in the relationship, everything is OK.

Where is my error.

Thanks

1 ACCEPTED SOLUTION
FRG
Resolver I
Resolver I

I got a solution. I change my formula to compare the 2 IDRun:

CompareSpecies = if(Scalings[SupposeIDRun] = LOOKUPVALUE('13021sorter prodrun'[idRun];'13021sorter prodrun'[ColonneCombine2];Scalings[ColonneCombine]);1;0)

Thanks

View solution in original post

1 REPLY 1
FRG
Resolver I
Resolver I

I got a solution. I change my formula to compare the 2 IDRun:

CompareSpecies = if(Scalings[SupposeIDRun] = LOOKUPVALUE('13021sorter prodrun'[idRun];'13021sorter prodrun'[ColonneCombine2];Scalings[ColonneCombine]);1;0)

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