Forum Discussion
ChrisPBI
10 years agoAdvocate III
Data Model Value Average
Hello, my data model says that a product can have emissions in four life cycle stages. Example for product XY with A to D as the life cycle stages as table values: Product Life Cycle S...
- 10 years ago
Hi ChrisPBI. If you use =AVERAGE(TableName[Value]), you'll get 12.5. To get the sum of the value column divided by the number of products, you could use this measure:
Measure = SUM(TableName[Value]) / DISTINCTCOUNT(TableName[Product])
For your sample, that should evaluate to 50 / 1 = 50.
KGrice
10 years agoMemorable Member
Hi ChrisPBI. If you use =AVERAGE(TableName[Value]), you'll get 12.5. To get the sum of the value column divided by the number of products, you could use this measure:
Measure = SUM(TableName[Value]) / DISTINCTCOUNT(TableName[Product])
For your sample, that should evaluate to 50 / 1 = 50.