Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Correlation plot: incorrect calculation

Hi,

 

I have a problem with the Correlation plot custom visual in Power BI, it displays the visual as it should but the numbers are all wrong. Even if I use a very simple Excel file with just 30 observations the numbers I get in Power BI differ completely from the ones I get in Excel. I tried using the corrplot packhae directly in R (the same component that the Power BI visual uses) and there it gives me the exact same numbers as in Excel, so the problem is not in the visual itself - but in how it uses the data in Power BI.

I have tried changing the datatype of the columns from decimal to whole number and using Don't summarize as the default aggregation to really make sure it uses the raw data - but I still get incorrect numbers.

 

Has anyone else experienced this, and solved it somehow?

 

Thanks!

 

CorrPlotCalculation.png

 

 

1 ACCEPTED SOLUTION

Hi Fredrik,

 

Good news. The Product Team will improve this visual in the next version. They also provide a more beautiful workaround, using a textual index column instead of a numeric index column. Please refer to the snapshot below.

Correlation-plot-incorrect-calculation2

Correlation-plot-incorrect-calculation3

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

The root cause is that Power BI removes the duplicates. The visual just uses a small part of the whole dataset. So the workaround is adding an index for now. I have consulted the Product Team and will update here later.

Correlation-plot-incorrect-calculation

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Ah, that makes sense - thanks a lot for your reply!

I'll use the workaround for now  🙂

 

Best regards,

Fredrik  

Hi Fredrik,

 

Good news. The Product Team will improve this visual in the next version. They also provide a more beautiful workaround, using a textual index column instead of a numeric index column. Please refer to the snapshot below.

Correlation-plot-incorrect-calculation2

Correlation-plot-incorrect-calculation3

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Is it updated yet? I am facing the same problem. Is the index parameter added yet?

Anonymous
Not applicable

Thanks a lot for the quick feedback! It's so nice to work with a tool that just keeps on improving all the time - good work!

 

Regards

Fredrik  

 

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.