Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello everyone
I have two tables (below)
I would like to create new columns in Table 1. One for each ''Location Rate Name' in Table 2.
The desired result is at the bottom. This has two new columns.
Table 1
| Location ID |
| 1512 |
| 1513 |
| 1514 |
Table 2
| Location ID | Location rate name | Payment rate |
| 1512 | Standard day rate | 430 |
| 1512 | Weekend Shifts | 350 |
| 1513 | Standard day rate | 430 |
| 1513 | Weekend Shifts | 350 |
| 1514 | Standard day rate | 430 |
| 1514 | Weekend Shifts | 350 |
TABLE 3 - Desired result
| Location ID | Standard day rate | Weekend Shifts |
| 1512 | 430 | 350 |
| 1513 | 430 | 350 |
| 1514 | 430 | 350 |
Hi @HenryJS ,
Create table3 based on table1 using ADDCOLUMNS.
Table3 =
ADDCOLUMNS (
'Table',
"Standard day rate", SUMX (
FILTER (
'Table (2)',
'Table'[Location ID] = 'Table (2)'[Location ID]
&& 'Table (2)'[Location rate name] = "Standard day rate"
),
'Table (2)'[Payment rate]
),
"Weekend Shifts", SUMX (
FILTER (
'Table (2)',
'Table'[Location ID] = 'Table (2)'[Location ID]
&& 'Table (2)'[Location rate name] = "Weekend Shifts"
),
'Table (2)'[Payment rate]
)
)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@V-lianl-msft Hi,
I would like it to be additional columns onto table 1. Is it possible to do without stating the'Rate Names'. So it just picks up the differen strings and creates a new column for each one.
Cheers
@HenryJS , Try These two new column in Table 1
Standard day rate = maxx(filter(table2,table2[Location ID] =table1[Location ID] && table2[Location rate name] ="Standard day rate"),table2[Payment rate])
Weekend Shifts = maxx(filter(table2,table2[Location ID] =table1[Location ID] && table2[Location rate name] ="Weekend Shifts"),table2[Payment rate])
In Power query,
'Pivot' (on the Transform tab) the 'Location Rate Name' column using 'Payment Rate' as the Value
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 34 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |