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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Kate_D
Frequent Visitor

Calculated Column using RELATED

Hello. I need help with a calculated column. It returns a row with a manager’s name and a row with blank value when adding to a table.

 

Manager Name = IF('Department [Column.ManagerId] = RELATED('Employee'[Column.id]), RELATED(‘Employee’ [Column.Name]))

 

I am using three datasets: Company, Department, Employee.

Company and Department datasets have many to many relationship due to no unique values available in both datasets. Employee dataset has one to many relationships with Company and Department datasets.

 

pOWER .jpg

 

Thank you.

1 ACCEPTED SOLUTION
Kate_D
Frequent Visitor

6 REPLIES 6
Kate_D
Frequent Visitor

solved

parry2k
Super User
Super User

Nobody is saying share raw data, you can always create dummy data. Good luck. You are expecting to get support and not able to provide the information, not sure what else to say.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Kate_D it will be easier to share raw data for department and employee to understand why you are getting blank value. DAX expression seems to be correct and should work, only reason it will return empty value if the column value doesn't match.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I can't share the raw data. Thank you

Kate_D
Frequent Visitor

The Department dataset

parry2k
Super User
Super User

@Kate_D in which table are you adding this column, the department table?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.