Forum Discussion

tyan's avatar
tyan
Helper II
4 years ago
Solved

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. 

 

 

 

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

 

 

 
 
 
 

 

3 Replies