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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors