Forum Discussion
Anonymous
8 years agoNot applicable
DAX for rolling average, formula error
I'm trying to calculate the average number of invoices vouchered or the past 5 days, however my DAX returns an error "Calculation error in measure 'vouchered'[Measure]: a table of multiple val...
parry2k
8 years agoSuper User
DATEADD returns the table not column and that could be the reason.
- Anonymous8 years agoNot applicable
I changed it, but I'm still getting an error. Here's my latest function:
Measure = CALCULATE( AVERAGEX(vouchered, COUNT(vouchered[Invoice Number])), FILTER( ALLEXCEPT(vouchered, vouchered[Created Date].[Date]), DATESBETWEEN( 'vouchered'[Created Date].[Date], LASTDATE(vouchered[Created Date].[Date])-5, LASTDATE(vouchered[Created Date].[Date]) ) ) )- Anonymous7 years agoNot applicable
hey Anonymous
try using quick measures to get your past 5 days average.
kind regards;
HiltonM