Hi,
I'm having a problem understanding what I'm doing wrong;
I have a measure for Revenue;
<
SUMX(fTransactions,
fTransactions[UnitsSold]*(1- fTransactions[Discount])*RELATED(dProduct[RetailPrice]) ) >
This works, and then I wanted the average so; (dDate = date table)
< AVERAGEX ( dDate, [Revenue] ) >
This also works, but for practice I'd like to actually type it all out rather than using the measure within AVERAGEX,
So thought,
< AVERAGEX( dDate, CALCULATE (
SUMX(fTransactions, fTransactions[UnitsSold]*(1- fTransactions[Discount])*RELATED(dProduct[RetailPrice]) ) >
Would work, but I get continual errors highlighted, I've tried not using Calculate but am a bit stuck.
Richard.
I'm having a problem understanding what I'm doing wrong;
I have a measure for Revenue;
<
SUMX(fTransactions,
fTransactions[UnitsSold]*(1- fTransactions[Discount])*RELATED(dProduct[RetailPrice]) ) >
This works, and then I wanted the average so; (dDate = date table)
< AVERAGEX ( dDate, [Revenue] ) >
This also works, but for practice I'd like to actually type it all out rather than using the measure within AVERAGEX,
So thought,
< AVERAGEX( dDate, CALCULATE (
SUMX(fTransactions, fTransactions[UnitsSold]*(1- fTransactions[Discount])*RELATED(dProduct[RetailPrice]) ) >
Would work, but I get continual errors highlighted, I've tried not using Calculate but am a bit stuck.
Richard.