DAX Formula

Grinch356

New Member
Joined
Jan 6, 2015
Messages
31
Hi,

Not sure if this is possible. I have currently working the below formula:

Revised MAD Measure:=AVERAGEX(DISTINCT(FAReportInput[SKU]),FAReportInput[Revised MAD Calc])

This essentially in my workbook takes the results of a calculation (the revised MAD calc) and calculates the results as an average across all individual SKUs - the key here is it takes each SKU as a distinct value and result. Now my data currently calculates at weekly level but I do have a montly descriptors with data available to use - FAReport[MONTH],FAReport[WEEK],FAReport[YEAR],


If i just use the month column in my pivot table it aggreagates all the data for the calculation acrosss the month but I want to get the average weekly result across the month. To be clearer, I want it to do the calcualtion above working out at SKU level, then average these across the week as it is currently doing and then average those weeks across the month. Can this be done?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi,

Thanks to anyone that looked at this - I have figured it out now. It was simply a case of adding another measure:

Monthly MAD Measure:=AVERAGEX(DISTINCT(FAReportInput[WEEK_NUMBER]),[Original MAD Measure])

Should have thought more about it before I came to the board!
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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