Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
gduobaite
Helper III
Helper III

Retrieve values from another table

Hi all, 

 

I have two tables (Table & Table(2)) related through "z_score_rnd" column.

I need to show "100" (number) value in "score %" colum for the scores, which are >=4 or <=-4 from Table(2).

Is it possible to get "if z_score_rdn >=4 or <=-4, then score % = 100, else show values from Table1 score% column".

 

I tried:

 

 

 

 

Column  = IF('Table2'[z_score_rnd]>=4 || 'Table2'[z_score_rnd]<=-4, 100)

 

 

If I would only know how to implement false value (false should be all remained % values from Table1, "score %" column)...

 

 

Please see attached pbix file. 

https://www.dropbox.com/t/sQuwN2DmUUxbsqHi

 

 

1 ACCEPTED SOLUTION

Hi @gduobaite ,

You can create this column:

 

Column =
IF (
     ( [z_score_rnd] >= 4
        || [z_score_rnd] <= -4 )
        && [z_score_rnd] IN DISTINCT ( 'Table (2)'[z_score_rnd] ),
    100,
    [score %]
)

 

re.png

Attached the file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
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

5 REPLIES 5
gduobaite
Helper III
Helper III

I tried:

Column  = IF('Table2'[z_score_rnd]>=4 || 'Table2'[z_score_rnd]<=-4, 100)

If I would only know how to implement false value (false should be all remained % values from Table1, "score %")...

Hi @gduobaite ,

You can create this column:

 

Column =
IF (
     ( [z_score_rnd] >= 4
        || [z_score_rnd] <= -4 )
        && [z_score_rnd] IN DISTINCT ( 'Table (2)'[z_score_rnd] ),
    100,
    [score %]
)

 

re.png

Attached the file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@gduobaite , I am not able to get any logic to connect to the table, can you explain, what is logic we have join these two.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak,

in Table1 there are scores ("score") with its value in % form ("score %").

 

Let's say probability to have a malaria is -3.02, that mean its 33 % below populiation avg. If score is 0,89, then you have 90 % chance to sick above population avg. BUT whole scores are in Table2, not in Table1 (there are scores only between -4 and 1, while Table2 handles 19, -87.4 and so on.)

 

So I need to have a column with % values from the Table1 WITH the 100 % values if score from Table2 is >=4 or <=-4.

 

I very hope it explained a little more..

vanessafvg
Community Champion
Community Champion

you will need to add your pbix to dropbox or something similar so we can download from there.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.