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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply

a measure that sum positive values only in a Cart

Hi Guys.

I'm really Confused!!!

I have a table like this:

ITEM_CODENEEDINVENTORY_QTYMISS_0
ITM_11005050
ITM_220010190
ITM_335100

-65

I want to create a measure that converts negative values to zero.

I need to sum of [MISS_0] column in a cart and it should show 240 not 175.

and I need to use measure and not calculate column because I have other filters that using of calculate column does'nt helpful.

Now my solution is using filter on this visual(Table) that filters Positive values but this way can't help me cause we cant filter measure with single value in a Cart.

I need a measure just sum positives or in the best way converts to zero.

Thanks.

1 ACCEPTED SOLUTION
PurpleGate
Resolver III
Resolver III

This measure

Measure = CALCULATE(SUM('Table'[MISS_0]),FILTER('Table','Table'[MISS_0]>0))

PurpleGate_0-1660638731203.png

 

 

View solution in original post

2 REPLIES 2
bvdm1980
Helper II
Helper II

so what if i have a table with a measure in it, and i want the same effect (a card with all negative amounts from measure summed and a cart with positive summed). Then above doesn't work on measures i noticed. 

So i have WIP calculated in a measure. THis measure takes all revenue minus all costs per project. Now i want to sum all negative WIP amounts. 

If i use :

CALCULATE(Measure[WIP], FILTER(Measure, Measure[WIP]>0))

it doesn't do anything. I get same amounts for debet and credit...(where ofcourse i use < and >)
PurpleGate
Resolver III
Resolver III

This measure

Measure = CALCULATE(SUM('Table'[MISS_0]),FILTER('Table','Table'[MISS_0]>0))

PurpleGate_0-1660638731203.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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