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
odada11
Helper I
Helper I

Inactive ralationship

Hello Friends,

Pls i need help with an inactive relationship

odada11_1-1687970357423.png


i have this 3 table, the relationship between Homeland and security is solid however the production table and Security table is inactive. they are all text and i need to be able to userelationship between Security table and production table to be able to return names of Security personnel and date on the production table;
Tjhis is my expected output;

odada11_2-1687970445144.png

I am unable to do that presently because the Security table and Production are inactive. The producer id and Admin ID are same.

Kindly help.

1 ACCEPTED SOLUTION
odada11
Helper I
Helper I

Thank you so much. i appreciate your help.

View solution in original post

2 REPLIES 2
odada11
Helper I
Helper I

Thank you so much. i appreciate your help.

v-yangliu-msft
Community Support
Community Support

Hi  @odada11 ,

I created some data:

Homeland table:

vyangliumsft_0-1688094527139.png

Product table:

vyangliumsft_1-1688094527141.png

Security table:

vyangliumsft_2-1688094543148.png

 

Here are the steps you can follow:

1. Create calculated column.

names of Security personnel =
MAXX(
    FILTER(ALL('Security table'),
    'Security table'[Group]=EARLIER('Homeland table'[Group])),[Security Personnel])
date =
var _ID=
MAXX(
    FILTER(ALL('Security table'),
    'Security table'[Group]=EARLIER('Homeland table'[Group])),[Admin id])
return
MAXX(
    FILTER(ALL('Product table'),
    'Product table'[Producter ID]=_ID),[Production date])

 2. Result:

vyangliumsft_3-1688094543149.png

If I have misunderstand your meaning, please contact me and provide a pbix without privacy data.

 

Best Regards,

Liu Yang

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

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.