When you add your variations, are you making sure the drop-down list next to the variation ID is selected to the right attribute? This was the case for me when setting up variable products.
You need to add your attributes, then save the product. After the update, add the variations and make sure that on the title bar of the variation you select which attribute it should be assigned to.