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
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"))

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
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.