Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Add category based on a second table

Hello!

 

I am new to Power Query and I am having some trouble with a task. Could anyone give me some advice?

Basicaly, I have Table.1 with products and their relative volume, and Table.2 with categories associated to "volume ranges". I want to associate those categories to the products, as in Table.3.

I checked the possibility of using bucket function, but I don't think it will work because Table.2 ranges can change and I need a fast way to update the categories.

Thanks!!

 

Table.1

ProductVolume
p18
p215
p316
p425
p550

 

Table.2

Categorymin volmax vol
A010
B1020
C2030
other30100

 

Table.3

ProductVolumeCategory
p18A
p215B
p316B
p425C
p550other

2 Replies