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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
marina_oliveira
Frequent Visitor

Table visualization totals

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?

 

marina_oliveira_0-1673954311694.pngmarina_oliveira_1-1673954341703.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @marina_oliveira 
You need to iterate over the matrials:

Disponível (Correct Total) =
SUMX (
    VALUES ( 'Table'[Material] ),
    [Disponível]
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

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!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors