Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello everyone!
I have a column that is the sum (subtraction) of two other columns (Disponível = Estoque - Pedidos). Sometimes, this subtraction is a negative number. My client wants to show zero instead of a negative number (the line must be shown, I can't just filter it).
I wrote a measure using "if" to do it, but the total of the column also appears as zero (and I understand that, because it follows my measure, if the total is negative, it shows zero after all). The thing is that my client wants the sum of the positive values showing on the total of that column. How do I do that? Can anybody help me?
Solved! Go to Solution.
Hi @marina_oliveira
You need to iterate over the matrials:
Disponível (Correct Total) =
SUMX (
VALUES ( 'Table'[Material] ),
[Disponível]
)
Hi @marina_oliveira
You need to iterate over the matrials:
Disponível (Correct Total) =
SUMX (
VALUES ( 'Table'[Material] ),
[Disponível]
)
Thank you! it worked perfectly!
User | Count |
---|---|
22 | |
14 | |
11 | |
9 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |