averages from price change data

nileshp

New Member
Joined
Oct 29, 2008
Messages
19
The following table in PBI has price changes. I want to get a table of
a) monthly date-wise weighted average price. maybe i could create a table in PQ for each date in calendar and then group. But how do i do in DAX, since there are many materials.
b) simple average by material with considering first on month price and changes thereafter in the month
c) month end prices by material

DateMaterial NamePrice
01/01/2019A23
01/01/2019B98
23/01/2019A21
23/01/2019B93
01/02/2019A20
01/02/2019B90
14/02/2019A22
14/02/2019B89
21/03/2019A25
21/03/2019B86
30/03/2019A30
30/03/2019B100
11/05/2019A32
11/05/2019B99
12/05/2019A30
12/05/2019B98

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>


for example, wgtd avg derived by PQ
mmmAB
January22.4193548496.5483871
February21.0714285789.46428571
March23.3870967788.83870968
April30100
May30.0645161398.67741935

<thead>
</thead><tbody>
</tbody>




thanks
nilesh
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

citizenbh

Board Regular
Joined
Sep 19, 2013
Messages
139
In PowerPivot make new Column [Mont]:
Code:
=FORMAT([Date],"MMMM")

and create Pivot Table :
Rows:Month
Columns: Material Name
Value: Average for Price
 

Watch MrExcel Video

Forum statistics

Threads
1,113,838
Messages
5,544,607
Members
410,626
Latest member
rkmadasu
Top