The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
92 | |
90 | |
72 | |
69 |
User | Count |
---|---|
232 | |
128 | |
117 | |
82 | |
82 |