Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
Hello,
I'm working to build a dashboard for my team to measure the delivery perfromance and trend of my supplier based on last year reccord.
I have some supplier where the On-time trend (%) trend is negative as below and would like to retrasncript tthis into a coefficient of correlation
Month Count(On time) Count(Total) On-time Rate
| Jan | 90 | 100 | 90% |
| Feb | 95 | 120 | 79% |
| Mar | 100 | 150 | 67% |
Do you kow how to do?
I tried quick measure in PBI but result is not matching reality.
If you have an idea to suggest?
Thank you
Solved! Go to Solution.
@Dimitri70 - Have you tried the measure mentioned in this blog?
https://xxlbi.com/blog/pearson-correlation-coefficient-in-dax/
It's from a very skilled Microsoft MVP.
Hopefully this helps you achieve the answer you are looking for.
If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!
I think I could fix it. thank you
Hello, thank you for your help and for sharing the link.
I was able to copy the code and adapt it to my table, and the results appear satisfactory. However, I am facing an issue. My objective is to analyze the delivery performance trend of my suppliers over the last 12 months. In some cases, certain suppliers have only delivered for 3 months, achieving a 100% delivery performance. Despite this, the coefficient of correlation is showing -0.89. I suspect this may be due to the months without deliveries being counted as 0. Is there a way to exclude the months with no deliveries from the analysis?
| Month | Count on time | Count total | DP |
| 5/1/2024 | |||
| 6/1/2024 | |||
| 7/1/2024 | |||
| 8/1/2024 | |||
| 9/1/2024 | |||
| ######## | |||
| ######## | 2 | 2 | 100% |
| ######## | 4 | 4 | 100% |
| 1/1/2025 | 4 | 4 | 100% |
| 2/1/2025 | |||
| 3/1/2025 | |||
| 4/1/2025 | |||
| 5/1/2025 |
here my Dax formula:
Hi @Dimitri70.,
Thank you for bringing up this question.
I would like to reinforce the valuable recommendation shared by @mark_endicott . The referenced blog provides a clear explanation and a practical DAX implementation of the Pearson correlation coefficient, which is highly effective for analyzing trends such as the negative pattern in your on-time rate.
Using this method allows you to statistically measure the correlation between time (month index) and your performance metric (on-time rate), supporting clearer visualization and communication of delivery performance trends within your dashboard.
A value near -1 indicates a strong negative correlation, which aligns with your observations.
I hope this helped! Feel free to ask any further questions. If this resolved your issue, please mark it as "Accept as Solution" and give us Kudos to assist others.
Thank you and Continue using Microsoft Fabric Communtiy Forum.
@Dimitri70 - Have you tried the measure mentioned in this blog?
https://xxlbi.com/blog/pearson-correlation-coefficient-in-dax/
It's from a very skilled Microsoft MVP.
Hopefully this helps you achieve the answer you are looking for.
If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |