Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Solved! Go to Solution.
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
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
Hey @Anonymous ,
that should be possible with DAX.
Do you need it as a calculated column or as a measure?
If you provide some sample tables or a Power BI file I can try to solve that. The solution depends a lot on the relationships and your data.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.