Average per quarter

Hi,

I have to calculate the average of averages.

I used the following measures:

PalletsTotaal =
COUNTROWS(FactInslag)

PalletsGemiddeld =
AVERAGEX(VALUES(DimDatum[Date]); [PalletsTotaal] )

AantalDagenGedraaid =
COUNTX(VALUES(FactInslag[Datum]); FactInslag[Datum])

So basically the measure that computes the average of PalletsGemiddeld must be one value

tempsnip

If you want the average of a number you’ve already calculated, try using SUMMARIZE to iterate through a virtual table based on those calculations.

For example,

AVERAGEX(
SUMMARIZE ( Dates, QuarterHourColumn,
“Average Results”, PalletsMeasures ),
[Average Results] )

This is the technique I would try first.

For more details see this example below

Here’s the main part to look at

See if this helps

Hi, thanks for quick response.

It’s exactly what I was looking for. Now I want the total value to be displayed on each quarter hour. So 9,68 in every quarter hour, making it a straight line.

Any thoughts on how to reach this?

Any clue?

I think you are on the right track. You used a measure similar to the one Sam suggested prior. Did this measure not give you the result you wanted? What is result looking for if not.

Thanks
Jarrett

Enterprise%20DNA%20Expert%20-%20Small

Hi Jarrett,

I want 9,68 ( the average of all quarter hours) to be in each row, so I can display this as a straight line.

Best,
Luuk

Any clue?

Hi @Luukv93,

I would try to use the next calculation if you want the straight line:

CALCULATE([Test 1],
          FILTER(ALL('DateTable'),
                 Quarterhourcolumn>=Min(Quarterhourcolumn)))