How to calculate a weighted average

PHOTO EMBED

Thu Apr 06 2023 00:06:31 GMT+0000 (Coordinated Universal Time)

Saved by @yoikodata ##tableau ##tablecalculations

Create a weight factor based on some variable

weight_factor = COUNT(dimension) / TOTAL(COUNT(dimension))

AVG(measure) * weight_factor
content_copyCOPY

performing a weighted average calculation considering the weight of some variable