Forum Discussion
Get value from another table with multiple conditions.
Hello. I have two tables as below. I want to create a custom column (Total Calls) in table2 and if the city and location values are equal, I want to add the count data in table1 to the Total Calls column in table2. How can I do this in powerquery?
When you are merging the 2 tables in power query, you need to select both "city" and "location" by holding the CTRL key in order to select both. Do the same for table 2. You need to join on these two columns.
6 Replies
- mussaendaCommunity Champion
- mermanahanFrequent Visitor
When you are merging the 2 tables in power query, you need to select both "city" and "location" by holding the CTRL key in order to select both. Do the same for table 2. You need to join on these two columns.
- Omid_MotamediseSuper User
Use merging the tables
- AnonymousNot applicable
Hi u4us1923 ,
Here is the procedure. Please refer to mermanahan's response to holding CTRL key while selecting multiple columns.
The pbix file is attached for reference.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum