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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

A measure to exclude values from one column based on filtering from another column

Nobleks_0-1709162719217.png

I have the above data set and I am trying to get the sum of the question value except when the text in the Fail column is "yes". 

Nobleks_1-1709162816145.png

I've tried a few different measures, but when I select "yes" on the slicer, I'm having an issue getting it to ignore the question value data. I would value any assistance as I think I have been working on this too long and am overthinking the problem.

 

Thank you,

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Anonymous ,

Create a measure.

Sum Except Fail = CALCULATE(SUM(table[question value]),filter(all(table),table[Fail] <> "yes"&&table[date]=selectedvalue(table[date])))

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

Anonymous
Not applicable

Thank you for the prompt reply. I actually added an if statement and just zeroed out the score possible and took care of the Score Percentage that way. 

 

Thank you!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

Create a measure.

Sum Except Fail = CALCULATE(SUM(table[question value]),filter(all(table),table[Fail] <> "yes"&&table[date]=selectedvalue(table[date])))

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

Anonymous
Not applicable

Thank you for the prompt reply. I actually added an if statement and just zeroed out the score possible and took care of the Score Percentage that way. 

 

Thank you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.