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! Request now

Reply
WestWinter
Helper II
Helper II

How do I create another column/measure where > or < 0 is stated as 0?

DateVariableValuescore
3/31/2010A-0.117341
4/30/2010A-0.131582
5/31/2010A0.0008481
6/30/2010A0.020215
7/30/2010A0.020486-1
8/31/2010A0.032784-3
9/30/2010A0.086358-2
10/29/2010A0.0910771
5/31/2010A0.0008483
6/30/2010A0.020214
7/30/2010B0.0344865
8/31/2010B0.031784-1
9/30/2010B-0.049358-2
10/29/2010B-0.0770

 

As above - I want the values to be zero when score is less than zero instead of the negative value and vice versa... How should I do this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @WestWinter ,

 

You can create a measure

Status Measure = IF(MAX('Table'[Value])>0||MAX('Table'[Value])<0,0)

Or a calculated column

Status Calculated Column = IF([Value]>0||[Value]<0,0)

1.png

 

But I'm not sure what is the meaning of you doing this, maybe I understand it wrong?

 

Best Regards,

Stephen Tao

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @WestWinter ,

 

You can create a measure

Status Measure = IF(MAX('Table'[Value])>0||MAX('Table'[Value])<0,0)

Or a calculated column

Status Calculated Column = IF([Value]>0||[Value]<0,0)

1.png

 

But I'm not sure what is the meaning of you doing this, maybe I understand it wrong?

 

Best Regards,

Stephen Tao

 

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

 

amitchandak
Super User
Super User

@WestWinter , Based on what I got , a new column

 

Value 1 = if([Value]<0, 0, [Value])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Hi Amit,

 

I updated my question - got it wrong the first time, apologies

@WestWinter , Can you share expected output

 

try

Value 1 = if([score]<0, 0, [Value])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 Solution Authors