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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rosscortb
Post Patron
Post Patron

measure based on two tables

Hello,

I would attach a sample but it's massive file so just try and explain what I'm trying to do.

I have an employee table.

ID

Name
Position Group( Director, Job Leader, Manager, Part Leader, Senior Ops Manager, Site manager, Task Supervisor, Team Leader)

Org unit number

I have an org table

Org unit number

Org Level(Level 1,4,5,6,8,9,10,11)

 

I am trying to bring through org level against the employee. I know I can create a relationship between org unit number.

But, it this relates to the position group. So, not all employees have a position group or Org Level.

For example, if you are a Team Leader, you're Org Level will be 5.

So, I think i need a measure instead?

 

Hope that makes sense.

Regards

Ross

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@rosscortb You can use LOOKUPVALUE in a measure or a calculated column. Or a MAXX coupled with a FILTER.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@rosscortb You can use LOOKUPVALUE in a measure or a calculated column. Or a MAXX coupled with a FILTER.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

Thanks Greg, so what can I add this to this that will make it only return values if there is a value in the position group column.  = 'Spans & Layers'[Position Group]

Org Level = LOOKUPVALUE('Org Master Data'[Org. Level_1],'Org Master Data'[ObjectID],'Spans & Layers'[Org.unit])
 
 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.