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
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
In PowerPivot make new Column [Mont]:
Code:
=FORMAT([Date],"MMMM")

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

Forum statistics

Threads
1,213,482
Messages
6,113,915
Members
448,532
Latest member
9Kimo3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top