cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

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

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors