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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
BobJohnson
Frequent Visitor

Showing value only if criteria from other column met, if not show 0

Hi Everone,

I'm trying to find a way to show only the value from one column that met the criteria from the other column.

Deal#StatusMonetary Value
1Won100
2Lost100
3In Progress200
4Won50
5Won150
6Lost100

 

I want to show in a table a total amount made on Wins and Losses. I can set up a filter but i already have percentile calculations that won't work unless no filter is selected.

Is there a way to create a new Column in my data table that will show Value If Status is Won but 0 if false? 

Deal#StatusMonetary ValueValue Won
1Won100100
2Lost1000
3In Progress2000
4Won5050
5Won150150
6Lost1000

 

Any help would be very appreciated.

Thanks,

Bob Johnson

1 ACCEPTED SOLUTION
freginier
Super User
Super User

Hello @BobJohnson  I don't know if I understand your point.. Do you need a IF statement ? Value Won =  IF( Table[Status] = "Won", Table[Monetary Value],0)

 

freginier

View solution in original post

2 REPLIES 2
freginier
Super User
Super User

Hello @BobJohnson  I don't know if I understand your point.. Do you need a IF statement ? Value Won =  IF( Table[Status] = "Won", Table[Monetary Value],0)

 

freginier

Anonymous
Not applicable

Hi @BobJohnson 

I think the solution @freginier  provided is right, if it help you, you can consider mark it as a solution, or you can provide more information that can offer more suggestion for you.

 

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors