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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
slounsbury
Helper II
Helper II

Comparing Values From Different Non-Related Tables

Hi All, I have a query that I can't seem to figure out. Do to one of my tables having information and not having a relationship with other I wanted to see if there is someway I could compare the two tables to get the information I am wanting. This doesn't explain it well so I will post what I am wanting.

 

SR_Service Table

TicketNbrUrgencyIDSLA_RecIDResolution_Hours
12322272 
12322395 
12322474 

 

SR_SLAPriority Table

SR_RecIDUrgencyIDResolution_Hours
2710
2820
2930
5750
58100
59150
4720
4830
4940

 

Basically what I am wanting is to create a new column in the first table to compare the frist two values with the second table and pull the resolution hours. Is that possible like this:

 

SR_Service Table

TicketNbrUrgencyIDSLA_RecIDResolution_Hours
1232227210
12322395150
1232247420

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You should try to relate them. What I would do is create a composite key by concatenating two fields into 1 and joining the two tables together on the newly created fields.

 

UrgencyId & SLA_RecID = 7 &"|"& 2

 

UrgencyID & SR_RecID = 7 &"|"& 2 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@slounsbury you should try the function LOOKUPVALUE, in this link there's a explanation of how it works

 

https://www.sqlbi.com/articles/lookup-multiple-values-in-dax/

 

I hope it helps you.

 

 

Anonymous
Not applicable

You should try to relate them. What I would do is create a composite key by concatenating two fields into 1 and joining the two tables together on the newly created fields.

 

UrgencyId & SLA_RecID = 7 &"|"& 2

 

UrgencyID & SR_RecID = 7 &"|"& 2 

 

 

This worked great! Thank you.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors