You need to do group by when you are performing aggregation function like sum...
from Mysource(qvd) group by YourDimensionsepratedbycomma;
Also when you load this table all calculation fields need to be present from same table otherwise if you are taking some fields from different table it will give error .For this case you need to concatenate your another dimension table with sourcetable qvd or depending on data perform some join to do calculation of your measures.
a/e as ans1,
c/f as ans2
resident Basetbl group by a,b,c,e,f,g;
Hope it will match with yur query..