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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
phantomias33
Regular Visitor

Need help with LOOKUPVALUE and displaying results based on 3 different Tables

I have three tables, essentially:

Weekly Staffing Table

Site NameCountry
HamburgGermany
DubaiU.A.E.
HannoverGermany
GalwayIreland

 

Country Risk Level Table

Country NameRisk Level
GermanyLow
U.A.E.Moderate
IrelandLow

 

 

Current Roster Table

Site NameEmployee Name
HamburgDirk Nowitski
Hamburg Angela Merkel
HannoverOtto Waalkes
HannoverEmil Berliner
HannoverGeorg Haendel
DubaiMohammed Omar
DubaiAli Saleh
GalwayPaul King

I've modeled a one-to-many relationship from 'Country' to 'Country Name' in the first two tables.  What I'd like to do is use a visual (possibly a table visual) to then show all the Employees in a particular country based on a slicer that selects the Risk Level of that country from the second table.

 

Using Copilot to ask this question, it pointed me down the road of using LOOKUPVALUE but I can't get it to work.  Any help or pointers would be greatly appreciated.

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your expected outcome looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file whether it suits your requirement.

 

Jihwan_Kim_0-1715050308159.png

 

Jihwan_Kim_1-1715050375235.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

Ritaf1983
Super User
Super User

Hi @phantomias33 
According to the description is a basic model + drag and drop :

Ritaf1983_0-1715050613165.pngRitaf1983_1-1715050626593.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @phantomias33 
According to the description is a basic model + drag and drop :

Ritaf1983_0-1715050613165.pngRitaf1983_1-1715050626593.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Thank you so much!  I need to spend more time educating myself on modeling. Very much appreciate your help.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your expected outcome looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file whether it suits your requirement.

 

Jihwan_Kim_0-1715050308159.png

 

Jihwan_Kim_1-1715050375235.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you for taking the time to answer.  Copilot can be a great help but it can't replace the help from experts like yourself.  Really appreciate your assistance.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.