Return the median value from results calculated by a measure...

Matty

Well-known Member
Joined
Feb 17, 2007
Messages
3,717
Hi,

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?

Cheers,

Matty
 
Hi,

Another related question:

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.

Cheers,

Matty

Bump. Anyone?

Cheers,

Matty
 
Upvote 0
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.
 
Upvote 0
Thanks for responding, gazpage. I'm fairly proficient with Excel formulas, but I'm still learning DAX syntax. I will continue to read up!

Cheers,

Matty
 
Upvote 0

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