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

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Relationship change the result of a formula

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

Re: Relationship change the result of a formula

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors