Use the condition if(getselectedcount(Measure)=1, if (Measure='Revenue', sum(Revenue),sum(Quantity)),0)
If both Revenue and Quantity is selected or if nothing is selected, it'll display zero. Or you could change the last condition to display what you like.