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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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 and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.