I’m trying to find the Pearson correlation of a single measure between two members of a dimension, but the msdn docs are a bit sparse. Specifically I have a cube with a fact count measure, a date dimension, and a tool dimension and I’d like to find the correlation of tool X and tool Y over the date dimension.
I’m trying to find the Pearson correlation of a single measure between two members
Share
take a look at the following script (Adventure Works DW 2008 R2):
It will return correlation of [Internet Sales Amount] measure for two different product subcategories (“Mountain Bikes”/”RoadBikes”) for months of current date member on rows (Calendar Year 2007 quarters and Calendar Year 2007). I have left other comparable members in comments.
HTH,
Hrvoje Piasevoli