Forum Discussion
Divide wrong result
In table i have formula
8 Replies
- amitchandakSuper User
Analitika , Ideally it should be sum(A)/Sum(B) or count(B).
is it something like this >
DIVIDE (
sum('Table'[Summ]) ;
count('Table'[Count])
) - AnonymousNot applicable
Hi Analitika ,
What kind of error do you get?Does below dax expression work?
measure =AVERAGEX( ALL(Table); DIVIDE( Table[Summ]; Table[Count] ) )If not,could you upload some sample data with expected output?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!- AnalitikaPost Prodigy
it is no errors, just wrong results,
as in table it is
Sum(Summ)/Sum(Count) ' devided each rowbut in measure ir became
Sum(Sum(Summ);Sum(Count)) / n ' devided rows sum
- AnonymousNot applicable
Hi Analitika ,
Based on my test,the result is same with measure= Sum(Summ)/Sum(Count) ' devided each row.See below:
Table as below:
Then measures are as below:
Divide = DIVIDE(SUM('Table'[Value]),COUNT('Table'[Value]))Average = AVERAGEX('Table','Table'[Divide])And you will see:
I'm not sure whether I misunderstood your point,if yes,pls correct me and advise me what your expected output is with my data.
Much appreciated.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!