Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Experts,
I have a scenario like need to retrieve a column from one table to other table which we do not have any relation among each tables.
Can anyone help me on this.
Regards,
Srivally
Solved! Go to Solution.
Hi @srivallyk
Sorry, seems somehow I missed your reply. Apologies for the late response. Please use
Program Name =
VAR T1 = ADDCOLUMNS ( 'Project Programme', "@ProgramName", RELATED ( Programme[ProgrammeName] ) )
VAR T2 = FILTER ( T1, 'Project Programme'[ProgrammeKey] = Project[ProjectKey] )
RETURN
MAXX ( T2, [@ProgramName] )
Hi @tamerj1 , I have attached the data model.
Here I want ProgrammeName from Programme Table to Project Table.
https://www.dropbox.com/s/tm3orr9kpqvlatt/Test.pbix?dl=0
Hi @srivallyk
Sorry, seems somehow I missed your reply. Apologies for the late response. Please use
Program Name =
VAR T1 = ADDCOLUMNS ( 'Project Programme', "@ProgramName", RELATED ( Programme[ProgrammeName] ) )
VAR T2 = FILTER ( T1, 'Project Programme'[ProgrammeKey] = Project[ProjectKey] )
RETURN
MAXX ( T2, [@ProgramName] )
But if I have multiple Programme Names for one Project, I'm getting only one Programme Name. I need to show either all Programme Names under that Project or simply show '-' for the Project.
Hi @srivallyk
Please update the sample file to reflect the same and share it with me.
Hi @tamerj1
attached is the link for the file.
https://www.dropbox.com/s/3jrlh7un2ev3hgd/Test_Card.pbix?dl=0
Here in the attached data model, relationships are not created because it cannot be created originally there are other datasets which I have not included.
If I select Project from the slicer, respective Programe and Legal Name should dispaly under respective cards. If I have multiple program/Legal Name under one Project selection, it should display '-' in card.
@srivallyk
I can see that you've already done that successfully. Am I missing something?
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |