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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
senthil9324
Frequent Visitor

Correlation calculation between rows within a table

I am working on survey related data & I want to calculate how one question influences all other questions asked to users.

 

Below is the sample data.

Survey id is unique for each person

Multiple questions are asked to each person

Score is between 0 - 100

 

Survey IdDateQuestionScore
8529733/25/2020How likely to use Dealership in future0
8529733/25/2020Overall Delivery Experience20
8529733/25/2020Delivered When Promised70
8529733/25/2020How likely to use TCIF in future90
8529733/25/2020Overall Sales Experience Satisfaction80
8529733/25/2020Sales Personnel Fair and honest70
8529733/25/2020Overall Sales Personnel Satisfaction20
8529733/25/2020Sales Personnel Explanation of features and options60
8529733/25/2020Overall TCIF Satisfaction0
8529733/25/2020Sales Personnel Helpful and courteous70
8529733/25/2020Sales Personnel Product knowledge10
8529733/25/2020Sales Personnel Explanation of financing alternatives30
8529733/25/2020Sales Personnel Explanation of warranty coverage60
8529733/25/2020Delivery Personnel Specifications50
8529733/25/2020Delivery Personnel Appearance and Condition0
8529733/25/2020Delivery Personnel Installation0
8529733/25/2020Delivery Personnel Explanation80
8529733/25/2020Sales Personnel Product recommendations30
8355667/16/2019Sales Personnel Fair and honest70
8355667/16/2019Delivered When Promised80
8355667/16/2019Delivery Personnel Specifications0
8355667/16/2019Delivery Personnel Explanation0
8355667/16/2019Overall Sales Personnel Satisfaction0
8355667/16/2019Sales Personnel Helpful and courteous90
8355667/16/2019Sales Personnel Product recommendations80
8355667/16/2019Sales Personnel Explanation of financing alternatives10
8355667/16/2019Delivery Personnel Appearance and Condition0
8355667/16/2019Overall Sales Experience Satisfaction50
8355667/16/2019Sales Personnel Explanation of warranty coverage10
8355667/16/2019Sales Personnel Explanation of features and options0
8355667/16/2019Overall Delivery Experience80
8355667/16/2019Sales Personnel Product knowledge10
8355667/16/2019Delivery Personnel Installation0
8355667/16/2019How likely to use Dealership in future90
8337857/11/2019Sales Personnel Product knowledge20
8337857/11/2019Sales Personnel Explanation of financing alternatives60
8337857/11/2019How likely to use Dealership in future60

 

Now, my requirement is, say I have in total asked 10 question to a user and I want these 10 question to be correlated again 5 (can increase or decrease in future) question among those 10 to see how one question's score is influencing  the other question score.

 

Users will have a single selection ON slicer with 5 question, and they can select one of the question to see the correlation score with total 9 question excluding the selected question.

3 REPLIES 3
senthil9324
Frequent Visitor

@Greg_Deckler 

Yes, I am looking for this kind of correlation coefficient only.

Let me further explain what my requirement is...

We are trying to find out how a particular question's score is influencing other question's score, for ex: if a user gives low score for a question like "Are you satisfied with salesperson's demo/explanation?" ... this should automatically  reduce score for a question like "How satisfied are you with dealership in helping, buy you the product?"

 

With existing sample data, Say If I choose question "Overall Sales Experience Satisfaction" as a base question, then I want to correlate its score with all other questions.

 

As per above link,

Item is question,

Value X is Score of question

Value Y should be base question score, repeating for all question within that survey id's (which I want it to be dynamic based on certain per selected questions)

 

Then calculate Correlation coefficient for each question for selected duration using a date filter.

 

Below is the required format to calculate the Correlation coefficient and that has to be happen dyamically wheneven base question is changed.

 

Survey IdDateQuestionScoreOverall Sales Experience Satisfaction
8178521/23/2019Delivered When Promised9080
8178521/23/2019Delivery Personnel Appearance and Condition6080
8178521/23/2019Delivery Personnel Explanation080
8178521/23/2019Delivery Personnel Installation3080
8178521/23/2019Delivery Personnel Specifications8080
8178521/23/2019How likely to use Dealership in future4080
8178521/23/2019How likely to use TCIF in future3080
8178521/23/2019Overall Delivery Experience4080
8178521/23/2019Overall Sales Experience Satisfaction8080
8178521/23/2019Overall Sales Personnel Satisfaction7080
8178521/23/2019Overall TCIF Satisfaction9080
8178521/23/2019Sales Personnel Explanation of features and options7080
8178521/23/2019Sales Personnel Explanation of financing alternatives4080
8178521/23/2019Sales Personnel Explanation of warranty coverage2080
8178521/23/2019Sales Personnel Fair and honest080
8178521/23/2019Sales Personnel Helpful and courteous8080
8178521/23/2019Sales Personnel Product knowledge3080
8178521/23/2019Sales Personnel Product recommendations7080
8184671/2/2019Delivered When Promised5070
8184671/2/2019Delivery Personnel Appearance and Condition3070
8184671/2/2019Delivery Personnel Explanation070
8184671/2/2019Delivery Personnel Installation4070
8184671/2/2019Delivery Personnel Specifications8070
8184671/2/2019How likely to use Dealership in future4070
8184671/2/2019How likely to use TCIF in future8070
8184671/2/2019Overall Delivery Experience5070
8184671/2/2019Overall Sales Experience Satisfaction7070
8184671/2/2019Overall Sales Personnel Satisfaction7070
8184671/2/2019Overall TCIF Satisfaction4070
8184671/2/2019Sales Personnel Explanation of features and options070
8184671/2/2019Sales Personnel Explanation of financing alternatives2070
8184671/2/2019Sales Personnel Explanation of warranty coverage5070
8184671/2/2019Sales Personnel Fair and honest2070
8184671/2/2019Sales Personnel Helpful and courteous8070
8184671/2/2019Sales Personnel Product knowledge7070
8184671/2/2019Sales Personnel Product recommendations070
8190743/7/2019Delivery Personnel Appearance and Condition7030
8190743/7/2019Delivery Personnel Installation5030
8190743/7/2019Delivery Personnel Specifications030
8190743/7/2019How likely to use Dealership in future7030
8190743/7/2019Overall Sales Personnel Satisfaction3030
8190743/7/2019Sales Personnel Explanation of features and options3030
8190743/7/2019Sales Personnel Explanation of financing alternatives6030
8190743/7/2019Sales Personnel Explanation of warranty coverage3030
8190743/7/2019Sales Personnel Fair and honest6030
8190743/7/2019Sales Personnel Helpful and courteous9030
8190743/7/2019Sales Personnel Product knowledge9030
8190743/7/2019Sales Personnel Product recommendations2030

 

 

V-lianl-msft
Community Support
Community Support

Hi @senthil9324 ,

 

It's not clear how to calculate the influences.

The options in the slicer increase or decrease,what you described need to be updated  manually.

You could create an unrelated new table as the slicer.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@senthil9324 Are you talking correlation like this:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Correlation-coefficient/m-p/196274#M21

Chapter 11 of DAX Cookbook has a bunch of statistics stuff. You can get the DAX here: https://github.com/gdeckler/DAXCookbook

 

Sorry, not sure what you mean by correlation.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.