cancel
Showing results for
Did you mean:
Frequent Visitor

## Average per month in a table

Hello

My problem is to have a average per month in a table, example:

It has to look like:

Anyone that could help me with a dax formula?

I've tried Averagex, but I wouldn't work.

9 REPLIES 9
Highlighted
Community Support Team

## Re: Average per month in a table

You may create a measure like below:

```Measure =
AVERAGEX (
FILTER (
ALL ( Table1 ),
MONTH ( Table1[Created Date] ) = MONTH ( MAX ( Table1[Created Date] ) )
),
Table1[Cost]
)
```

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Average per month in a table

Hello Cherie

But it doesn't seem right - look below:

What do I do wrong?

Community Support Team

## Re: Average per month in a table

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Average per month in a table

Hi Cherie

It got it to work now - it was a data error.

But I now have a new issue - I have to see it per item.

So in this I need 973202 item to calculate measure like above mentioned (for March it has to be 8,00 not 5,36)

When I click on the overview table at 973202, it still counts all the lines with in the measure, it has to be per item, hope you understand? How do i do?

Hope you can help me :-)

Community Support Team

## Re: Average per month in a table

It seems the cost is a measure.Could you provide the formula of the cost measure?It would be better if you could paste the data here instead of the screenshot.

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Average per month in a table

Hi Cherie

The cost measure (its a new column) comes here:

Cost = Ark1[Line Amount MST]/Ark1[Purchased Quantity]

Hope you can help me :-)

Community Support Team

## Re: Average per month in a table

Try below measure:

```Measure 3 =
AVERAGEX (
FILTER (
ALLSELECTED ( Ark1 ),
MONTH ( Ark1[Created Date] ) = MONTH ( MAX ( Ark1[Created Date] ) )
),
[Cost]
)
```

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team

## Re: Average per month in a table

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Average per month in a table

Hi Cherie

The problem has not been solved - i need the average cost pr. item and not for the hole table - can you help with that?

Regards Elena