Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |