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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I need advise what technique use in DAX to solve this problem. I have to table that I need to join:
Table1
ID NameUser
1 John
1 David
2 John
2 David
2 George
Table2
ID ClientName
1 XXX
1 YYY
1 ZZZ
2 XXX
2 YYY
The output table should be like this:
ID NameUser NameClient
1 John XXX
1 David YYY
1 (blank) ZZZ
2 John XXX
2 David YYY
2 George (blank)
The blank cells could alternatively contains one of the name from "above". That is for the UserName John or David; for the ClientName XXX or YYY
Thank you
Solved! Go to Solution.
Hi @iwf,
You should firstly add an index column inside group () in Query Editor mode.
Please refer to the attached .pbix file. The calculated table 'table_4' is the result table.
Best regards,
Yuliana Gu
Hi @iwf,
You should firstly add an index column inside group () in Query Editor mode.
Please refer to the attached .pbix file. The calculated table 'table_4' is the result table.
Best regards,
Yuliana Gu
Hi @iwf,
Here is a description of joins in DAX - https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
Regards,
Ruslan
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
Thank you for your answer. I saw that page earlier, but I am afraid, that I need to push little bit more. I know, that I cannot use any "naturaljoin".
The example with the EVALUATION, it needs to be done via the DAX studio?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
65 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |