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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Grinch356

New Member
Joined
Jan 6, 2015
Messages
31
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!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,027
Messages
5,835,029
Members
430,332
Latest member
Charly_Moon

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
Top