Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Guys.
I'm really Confused!!!
I have a table like this:
ITEM_CODE | NEED | INVENTORY_QTY | MISS_0 |
ITM_1 | 100 | 50 | 50 |
ITM_2 | 200 | 10 | 190 |
ITM_3 | 35 | 100 | -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.
Solved! Go to Solution.
This measure
Measure = CALCULATE(SUM('Table'[MISS_0]),FILTER('Table','Table'[MISS_0]>0))
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 :
This measure
Measure = CALCULATE(SUM('Table'[MISS_0]),FILTER('Table','Table'[MISS_0]>0))
User | Count |
---|---|
17 | |
14 | |
14 | |
13 | |
13 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |