March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I try to create something like this in Power BI.
I have two table (1 and 2) and i try to create a table like on the right of the picture.
I am able to dot it with only Champion name or Investigator name on my right table but im struggling to have both is it something possible ?
If yes, how can I achieve that ?
Thanks in advance !
Solved! Go to Solution.
Hi @Aikeno
You can achieve this in two different ways.
Lookupvalue:
championname = lookupvalue('table2'[firstname],'table1'[championid],'table2'[userid])
investigatorname = lookupvalue('table2'[firstname],'table1'[investigatorid],'table2'[userid])
Userelationship:
Same as first method, you can create two relationship one is active and another one is inactive relationship.
see this link userelationship
Hi @Aikeno ,
You can create two calculated columns in the table 'Table 1' as below to get it, please find the details in the attachment.
Champion full name =
CALCULATE (
MAX ( 'Table 2'[First name] ) & " "
& MAX ( 'Table 2'[Last name] ),
FILTER ( 'Table 2', 'Table 2'[User ID] = 'Table 1'[Champion ID] )
)
Investigator full name =
CALCULATE (
MAX ( 'Table 2'[First name] ) & " "
& MAX ( 'Table 2'[Last name] ),
FILTER ( 'Table 2', 'Table 2'[User ID] = 'Table 1'[Investigator ID] )
)
Best Regards
Hi @Aikeno
You can achieve this in two different ways.
Lookupvalue:
championname = lookupvalue('table2'[firstname],'table1'[championid],'table2'[userid])
investigatorname = lookupvalue('table2'[firstname],'table1'[investigatorid],'table2'[userid])
Userelationship:
Same as first method, you can create two relationship one is active and another one is inactive relationship.
see this link userelationship
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |