cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dancarr22 Member
Member

How to show a correlation matrix from the results in a single table?

Hello,

 

Is there a way to create a correlation matrix from the results in a single table?  Please see dataset below.

Basically, we have a list of currencies for a given date -- and what to compare all currencies against each other.

 

Thanks,

Dan

FX.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft v-huizhn-msft
Microsoft

Re: How to show a correlation matrix from the results in a single table?

Hi @dancarr22,

There is no such a direct visual in Power BI. I personally suggest you create a correlation matrix using R statement. First, you need to install R, then enable R visual following by the steps in this article.

Actually, I am confused with which fields should used to create the correlation. For example, we use the following sample data in R.

# Load data
data("mtcars")
my_data <- mtcars[, c(1,3,4,5,6,7)]
# print the first 6 rows
head(my_data, 6)


We will get the correlation matrix using the code. More details, please see this blog.

res <- cor(my_data)


You can also use the custom visual Correlation plot, you can download the sample table, and create your own according to the sample.

Best Regards,
Angelia

View solution in original post

1 REPLY 1
Microsoft v-huizhn-msft
Microsoft

Re: How to show a correlation matrix from the results in a single table?

Hi @dancarr22,

There is no such a direct visual in Power BI. I personally suggest you create a correlation matrix using R statement. First, you need to install R, then enable R visual following by the steps in this article.

Actually, I am confused with which fields should used to create the correlation. For example, we use the following sample data in R.

# Load data
data("mtcars")
my_data <- mtcars[, c(1,3,4,5,6,7)]
# print the first 6 rows
head(my_data, 6)


We will get the correlation matrix using the code. More details, please see this blog.

res <- cor(my_data)


You can also use the custom visual Correlation plot, you can download the sample table, and create your own according to the sample.

Best Regards,
Angelia

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors