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
tyan
Helper II
Helper II

Pie chart filter

 

NameMAJORBACKGROUNDSTATUSGENDER
NICKENGLISHTRADINGSTUDENTF
JACKENGLISHTRADINGSTUDENTM
JONHNSONENGLISHTRADINGTEACHM
ADAENGINEERINGMARKETINGTEACHM
MIALOGISTIC SUPPLY CHAINTEACHM
ELAINTERNATIONAL ECONOMICS AND TRADINGMARKETINGTEACHM
ZEROLOGISTIC SUPPLY CHAINSTUDENTM
FISHHINGMATHMARKETINGSTUDENTM
LULUMATHMARKETINGTEACHF
LALOENGINEERINGMARKETINGTEACHc
     

 

I got this table as my database. I would like to create two pie charts that display two team: count of teach team by gender and count of student team by gender. 

 

tyan_1-1649917530784.png

 

 

This chart looks good but once I click on it, the other pie chart other gender turn into 0. As you can see, I select Student Team M and Teach Team F is 0. 

 

I used this two dax functions, Please correct me. 

COUNT OF STUDENT = CALCULATE(COUNT(Sheet1[GENDER]),Sheet1[STATUS]="STUDENT")
COUNT OF TEACH = CALCULATE(COUNT(Sheet1[GENDER]),Sheet1[STATUS]="TEACH")

 

tyan_2-1649917627300.png

 

 
 
 
 

 

1 ACCEPTED SOLUTION

Hi, @tyan 

I think you may need to disable the interaction between the two reports.

1.png

Please check my sample file for more details.

 

Related thread:

Change how visuals interact in a Power BI report 

Edit Visual Interaction Power BI 

 

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@tyan , Try like

COUNT OF STUDENT = CALCULATE(COUNT(Sheet1[GENDER]),filter(Sheet1, Sheet1[STATUS]="STUDENT"))


COUNT OF TEACH = CALCULATE(COUNT(Sheet1[GENDER]),filter(Sheet1,Sheet1[STATUS]="TEACH"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I still get what i had. 

tyan_0-1649940126823.png

the other one is zero once I selected on the chart 

Hi, @tyan 

I think you may need to disable the interaction between the two reports.

1.png

Please check my sample file for more details.

 

Related thread:

Change how visuals interact in a Power BI report 

Edit Visual Interaction Power BI 

 

Best Regards,
Community Support Team _ Eason

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.