Forum Discussion
Anonymous
5 years agoNot applicable
Average a column by another column
I am looking to create a column that calculates the average number of shipments per load. What DAX logic can i use to create this column? Any help would be greatly appreciated.
- Anonymous5 years ago
HI Anonymous,
So you mean to aggregate a column based on another column category? If that is the case, you can take a look at the following formula if it meets your requirement.
New Column = CALCULATE ( AVERAGE ( Table[Column1] ), FILTER ( Table, [Column2] = EARLIER ( Table[Column2] ) ) )Regards,
Xiaoxin Sheng
Anonymous
5 years agoNot applicable
HI Anonymous,
So you mean to aggregate a column based on another column category? If that is the case, you can take a look at the following formula if it meets your requirement.
New Column =
CALCULATE (
AVERAGE ( Table[Column1] ),
FILTER ( Table, [Column2] = EARLIER ( Table[Column2] ) )
)
Regards,
Xiaoxin Sheng