Forum Discussion
Issue displaying average on a line chart and table
- 6 years ago
AnthonyTilley I was using the average because I was getting a total figure which was really high and therefore making the utilisation around 1%. I have managed to fix this issue by doing the following.
Column UiU gives me the number of products in use.
Column ContractQty gives me the number of products they are contracted to use.
Measure CountOfProducts = DISTINCTCOUNT(Utilisation[ProductType]) - gives me the number of distinct product types in the current filter
Column ColumnUtilisation = Utilisation[UiU]/Utilisation[ContractedQty] - gives me the sum of the utilisation for the product typesMeasure Utilisation = SUM(Utilisation[ColumnUtilisation])/[CountOfProducts] - sum of utilisation divided by the number of product types to give me the average figure I need.
amitchandak wrote:Is it made like this ?
MeasureUtilisation = Sum(Utilisation[MeasureUiU])/Sum(Utilisation[MeasureContracted])
I cannot set it this way as I am trying to refer to measures and it just throws an error.
Try
MeasureUtilisation = divide(Sum(Utilisation[MeasureUiU]),Sum(Utilisation[MeasureContracted]))
Please let us know what error u are getting