Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I have 2 tables (non relationship tables)
I am trying to create 3rd separate table where i need to bring ALL available EMP IDs (TABLE 1) against each JOB NOs (table 2) having common CLUB IDs
TABLE1 | |
CLUB ID | EMP ID |
ABC | 123 |
ABC | 456 |
ABC | 789 |
AAA | 001 |
TABLE2 | |
CLUB ID | JOB NO |
ABC | XYZ |
ABC | LMN |
ABC | OPQ |
AAA | XXX |
AAA | YYY |
TABLE3 - Desired Table | ||
CLUB ID | JOB NO | EMP ID |
ABC | XYZ | 123 |
ABC | XYZ | 456 |
ABC | XYZ | 789 |
ABC | LMN | 123 |
ABC | LMN | 456 |
ABC | LMN | 789 |
ABC | OPQ | 123 |
ABC | OPQ | 456 |
ABC | OPQ | 789 |
AAA | XXX | 001 |
AAA | YYY | 001 |
Pls help, thanks in advance
Solved! Go to Solution.
Hi @MEHUL123 ,
Please try to create a calculated table as below:
TABLE3 =
SELECTCOLUMNS(
FILTER(
CROSSJOIN('TABLE1', 'TABLE2'),
'TABLE1'[CLUB ID] = 'TABLE2'[CLUB ID]
),
"CLUB ID", 'TABLE1'[CLUB ID],
"JOB NO", 'TABLE2'[JOB NO],
"EMP ID", 'TABLE1'[EMP ID]
)
Best Regards
Hello @MEHUL123 ,
Here is the DAX for your reference.
If this helps, please mark this as solution. Appreciate Kudos always.
Cheers
Hi @MEHUL123 ,
Please try to create a calculated table as below:
TABLE3 =
SELECTCOLUMNS(
FILTER(
CROSSJOIN('TABLE1', 'TABLE2'),
'TABLE1'[CLUB ID] = 'TABLE2'[CLUB ID]
),
"CLUB ID", 'TABLE1'[CLUB ID],
"JOB NO", 'TABLE2'[JOB NO],
"EMP ID", 'TABLE1'[EMP ID]
)
Best Regards
Try this :
YourNeTable=
FILTER(
CROSSJOIN(Table1, Table2),
TREATAS(Table1[CLUB ID], Table2[CLUB ID])
)
Hi, Thanks for response, however unable to create desired table, request your view on this.
Thanks in advance
Whats the error ?Rename the column CLUB ID in either of the table from CLUB ID to CLUB_ID
NewTable =
FILTER(
CROSSJOIN(
Table1,
Table2
),
Table1[CLUB ID] = Table2[CLUB_ID]
)
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
20 | |
20 | |
14 | |
13 |
User | Count |
---|---|
43 | |
37 | |
25 | |
24 | |
22 |