Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. 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]
)
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
19 | |
13 | |
11 | |
10 | |
9 |