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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
dofrancis3
Resolver I
Resolver I

SUM and Count Mesure

Dear collegues;

Hope my message find you well, 

Please could you help me with a DAX mesure 

As per the printscreen below :

  1. I would like to Summarize "Female" column for all “Fail” and “Pass” Status column
  2. I would like to Summarize "Female" column only for “Pass” Status column

dofrancis3_0-1708472113981.png

Thank you for your support

Fd.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dofrancis3 ,

The table data is shown below:

vzhouwenmsft_0-1708480843002.png

Please follow these steps:
1. Use the following DAX expression to create a measure named ‘FailOrPass ’

FailOrPass = SUMX(FILTER('Tabelle1',
 'Tabelle1'[Status] = "Fail" || 'Tabelle1'[Status] = "Pass"),
 'Tabelle1'[Female])

2. Use the following DAX expression to create a measure named ‘PassOnly ’

PassOnly = SUMX(FILTER('Tabelle1',
  'Tabelle1'[Status] = "Pass"),
  'Tabelle1'[Female])

3. Final output

vzhouwenmsft_1-1708480994372.png

 

vzhouwenmsft_2-1708481001032.png

vzhouwenmsft_3-1708481007015.png

vzhouwenmsft_4-1708481013672.png

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @dofrancis3 ,

The table data is shown below:

vzhouwenmsft_0-1708480843002.png

Please follow these steps:
1. Use the following DAX expression to create a measure named ‘FailOrPass ’

FailOrPass = SUMX(FILTER('Tabelle1',
 'Tabelle1'[Status] = "Fail" || 'Tabelle1'[Status] = "Pass"),
 'Tabelle1'[Female])

2. Use the following DAX expression to create a measure named ‘PassOnly ’

PassOnly = SUMX(FILTER('Tabelle1',
  'Tabelle1'[Status] = "Pass"),
  'Tabelle1'[Female])

3. Final output

vzhouwenmsft_1-1708480994372.png

 

vzhouwenmsft_2-1708481001032.png

vzhouwenmsft_3-1708481007015.png

vzhouwenmsft_4-1708481013672.png

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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