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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
kdesai
Frequent Visitor

Running chi square test in Power BI and displaying the results on Power BI dashboard!

Hi, 

 

I have created the data queries already by connecting Power BI to SQL server.

 

I want to run chi square test on this data to understand if the differences between two sets of data are significant.

 

Also want to display these results in a compelling way, so that its easier for the audience to understand.

 

Has anyone worked on such use case??

Any inputs are appreciated!!

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @kdesai

a possible method is to utilize R and Power BI Desktop to visualize significance testing.

For more details using R in Power BI Desktop, please review the following articles.

Chi-Square Test in R with Example

 

Best Regards

maggie

Greg_Deckler
Super User
Super User

This looks like a very interesting problem. Can we assume that your data looks something along the line of:

 

Observed

ID,Category1,Category2,Category3

1,224,303,230

2,223,300,250

 

Expected

ID,Category1,Category2,Category3

1,225,305,235

2,225,305,235

 

Or? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi,

 

Yes, My data is in the above format.

 

Here is a screen shot!

h.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.