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
garuth01
Frequent Visitor

Using columns from different tables in a visual table

I have created 2 tables within Power Bi. Capture.PNGCapture2.PNGFor both tables: product & position are the same. 'Reference' has a column called Measurement, which represents the different types of measurements to be
taken; 'table1' has a column for each one of the measurement types (A,B,C,D) and it lists actual recorded data for these measurement types while at certain positions (L1, L2, L3, L4, L5). 'Reference' also has upper limit values for each measurement type at each position. 
What I want to do is have new columns called resultA, resultB, resultC, and resultD. So if I was trying to make column resultA, I would want it to print "PASS" if the value under the A column was less than the
value in the upper limit column. If it was greater than or equal to that upper limit value, It should print "FAIL"Capture5.PNG

 

I want to make a visual table that has [upper limit], [A], and [resultA], but it isn't letting me. It will do all blanks for one column, print all "PASS", or print all "FAIL."

Capture3.PNGCapture4.PNG

 

If Power Bi isn't capable of doing what I want, please help me find a loophole of some sort. I'm really stuck on this one. 

1 ACCEPTED SOLUTION
garuth01
Frequent Visitor

So what I did was manage the relationships so that the columns which where in both tables would have a relationship. 

Capture10.PNGCapture11.PNG                                                    I'd say they are working properly, but I encountered another issue when trying to reach my end goal. 

Capture9.PNGCapture8.PNGI wanted to somehow have a final results column somewhere on the page sort of like the one below (that one doesn't work though)Capture7.PNGBasically what I want to do is compare resultA, resultB, resultC, and resultD and if they are all "PASS" I want the resultFINAL column to output "PASS" 

View solution in original post

2 REPLIES 2
garuth01
Frequent Visitor

So what I did was manage the relationships so that the columns which where in both tables would have a relationship. 

Capture10.PNGCapture11.PNG                                                    I'd say they are working properly, but I encountered another issue when trying to reach my end goal. 

Capture9.PNGCapture8.PNGI wanted to somehow have a final results column somewhere on the page sort of like the one below (that one doesn't work though)Capture7.PNGBasically what I want to do is compare resultA, resultB, resultC, and resultD and if they are all "PASS" I want the resultFINAL column to output "PASS" 

alexvc
Resolver I
Resolver I

Hi there,

 

What you are trying to do can be done as long as your tables have the correct structure and relationship between them. What I see is that neither table has unique values, also in your table 1 you have A,B,C,D measurements as columns.

 

One approach is to create two tables, one for Positions and other one for Products. This is convenient if you are going to be adding more of those records in the future. You can then create relationship between your reference and Table 1 tables to these two tables.

 

A quick alternative is to create a calculated column concatenating Product&Position&Type of Measure in both tables, then you can create a relationship with these columns without creating more tables. But for this you should have Type of Measure as rows and not columns in your table 1

 

Let me know if it works

 

Alejandro

 

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.