I've read that MEDIAN and AVERAGE, etc., can only be calculated on data in columns rather than on values returned by a measure. Is this the case or is there a workaround?
If I wanted to pass the value returned by the above measure to an IF formula, how would I do this? I've tried a combination of things, but the syntax isn't quite right.
Well the syntax for IF() is pretty straight forward.
IF(logical_test>,<value_if_true>, value_if_false)
You can use TRUE() and FALSE() in dummy versions of the formula to help work out which parts are note working. You can use a measure in an if function easily enough, just put say [Measure]>5. Clearly you need to be quite careful with the syntax, so if you use a measure in a calculated column the measure will be calculated in the context of that row. As ever you can use CALCULATE() to alter the filter context.
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.