Forum Discussion
1 column data correclatio coefficient
Hi ZD,
thanks for reply. I couldn't upload a sample file, basically I have a column of prodcut and one column of customer, column of month of sales, then another column of sales in units.
what I try to do is to work out a way to calculate correlation coefficient for one customer between all products with certain period of historical sales.
- Anonymous2 years agoNot applicable
Hi cyuan
You can get this result by using the pivot column in Power Query:
Here are steps:
First of all, Select the Product column and click the Pivot column in the Transform pane:
The result is as follow:
But I can't understand how to get the 2%, 24% and -34%, if possible please share the logic of these results.
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- cyuan2 years agoFrequent Visitor
Thanks ZD for prompt reply.
the % is calculated in Excel with forumla Correl(array1, array2)
I try to use the dax quick measure correlation coeffecient however it ask for 2 columns, in this case it does't really help because i will have more than 2 columns.
thanks
)