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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dofrancis3
Helper I
Helper 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
v-zhouwen-msft
Community Support
Community Support

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
v-zhouwen-msft
Community Support
Community Support

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors