Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I have two tables (below)
I would like to create new columns in Table 1. One for each ''Placements Rate Name" in table 2.
The desired outcome is at the bottom. This has two new columns.
Table 1
Placement ID |
1512 |
1513 |
1514 |
Table 2
Placement ID | Placements Rate Name | Pay Rate |
1512 | Standard Day Rate | 430 |
1512 | Shifts Weekend | 350 |
1513 | Standard Day Rate | 430 |
1513 | Shifts Weekend | 350 |
1514 | Standard Day Rate | 430 |
1514 | Shifts Weekend | 350 |
TABLE 3 - Desired Outcome
Placement ID | Standard Day Rate | Shifts Weekend |
1512 | 430 | 350 |
1513 | 430 | 350 |
1514 | 430 | 350 |
Solved! Go to Solution.
@HenryJS , Try 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])
@HenryJS , Try 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])
@amitchandak is there a way of doing this without stating the 'Rate Name'?
So it just createst a new column for each different string in the rate name column?
User | Count |
---|---|
98 | |
90 | |
83 | |
69 | |
67 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |