cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Elpida1803 Frequent Visitor
Frequent Visitor

Creating Correlation

Hello,I am a statistician and i am using PowerBI for Graphs and Analysis.I want to calculate correlation.I have read other Topics tha suggets R for calculation.My point is that i want to see the number of correlation in a table and the graph as well.It will be grateful to here any suggestion.

 

Thank you.,

1 ACCEPTED SOLUTION

Accepted Solutions
Elpida1803 Frequent Visitor
Frequent Visitor

Re: Creating Correlation

Thank you for your answers!I find the solution.I created the pearson correlation using DAX.Then i applied the numbers as labels in my Graph.It would be great if DAX had Correl(Excel's function) in DAX.

View solution in original post

7 REPLIES 7
Highlighted
Steve_Wheeler Established Member
Established Member

Re: Creating Correlation

Elpida1803 Frequent Visitor
Frequent Visitor

Re: Creating Correlation

Thank you for your answer.I have created the plot in PowerBI,my main concern is to see the correlation number for every country that i have in my sample.I give you a screenshot!If there is a way to create a plot for every country.

Thank you

 

 

 Correlationpng.png

Steve_Wheeler Established Member
Established Member

Re: Creating Correlation

@Elpida1803,

I'm not exactly sure what dataset you're working from or what end result you need and I'm no statistician, but the following may help "group" within corrplot: http://stackoverflow.com/questions/33615112/run-corrplot-to-a-data-frame-by-group

 

There's also some discussion on techniques here: http://stackoverflow.com/questions/5453336/plot-correlation-matrix-into-a-graph

 

Good luck!

 

Moderator v-caliao-msft
Moderator

Re: Creating Correlation

Hi @Elpida1803,

 

Please share us some sample data and the expected result, so that we can make further analysis.

 

Regards,

Charlie Liao

Elpida1803 Frequent Visitor
Frequent Visitor

Re: Creating Correlation

Thank you for your answers!I find the solution.I created the pearson correlation using DAX.Then i applied the numbers as labels in my Graph.It would be great if DAX had Correl(Excel's function) in DAX.

View solution in original post

chrislbs Frequent Visitor
Frequent Visitor

Re: Creating Correlation

Having looked at the solutions posted on Correlation in DAX, the method looks like:

Having chosen 2 fixed variables, calculate the appropriate sums of squares and differences with a long formula and then evaluate the ratio to give you Pearson's Correlation. If you have more than one variable, you will be writing custom measures for each of them.   The recommendation is to use R for this, probably starting with the Correlation Plot from the Office Store.

 

https://store.office.com/powerbiaddininstallpage.aspx?rs=en-US&assetid=WA104380814

 

 

 

 

JaouadZrhibi Regular Visitor
Regular Visitor

Re: Creating Correlation

Dear Elpida,

 

According to your post in 2016, I would like to know how you add the correlation indicator.

 

In my project of world imports statistics, I want to see countries that are correlated by weights or by volume in USD.

 

Can we add a nice chart or indicators ?

 

https://app.powerbi.com/view?r=eyJrIjoiNGNjYWEyMDItMmVhYS00OTVmLTgxM2ItYjFmMjYyODVmMDU5IiwidCI6IjBiO...

 

I can send you the original file.

 

Thank you for your help.

 

Have a nice day,

 

Jaouad

 

 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 46 members 1,145 guests
Please welcome our newest community members: