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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Community Champion
Community Champion

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!:
DAX For Humans

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.