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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Total in matrix column is zero

Hi all,

 

I have a matrix where I want to show Sales values and the Total, but the Total is blank.

 

The measure is: 

 

SumSalesLegal = IF([Confirmed Order] = 1,CALCULATE(SUM(Query2[Amount]),FILTER(Kontoplan,Kontoplan[Account Number] = 1510))*1,0)
 
The table works before I add "IF([Confirmed Order] = 1" it doesnt sum correct.
 
Tried to search for a solution, but cant find any proper. 

 

 

 

Niclasthell_0-1661251374531.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

what are you slicing by in this table/matrix visual? Let's assume each row in this table/matrix visual represents a product then 

SumSalesLegal =
SUMX (
    VALUES ( 'Product'[Product Name] ),
    CALCULATE (
        IF (
            [Confirmed Order] = 1,
            CALCULATE (
                SUM ( Query2[Amount] ),
                FILTER ( Kontoplan, Kontoplan[Account Number] = 1510 )
            ) * 1,
            0
        )
    )
)

View solution in original post

3 REPLIES 3
Julianaz
Helper II
Helper II

I believe it's because it's lacking of row level iteration. We need build it up using SUMX. Alternatively, we could add a calculated column as opposed to a measure.

I encountered the same issue today; got resolved by either way.

tamerj1
Super User
Super User

Hi @Anonymous 

what are you slicing by in this table/matrix visual? Let's assume each row in this table/matrix visual represents a product then 

SumSalesLegal =
SUMX (
    VALUES ( 'Product'[Product Name] ),
    CALCULATE (
        IF (
            [Confirmed Order] = 1,
            CALCULATE (
                SUM ( Query2[Amount] ),
                FILTER ( Kontoplan, Kontoplan[Account Number] = 1510 )
            ) * 1,
            0
        )
    )
)
Anonymous
Not applicable

Hi! I modified the product and it worked! Thanks! Can you help me understand how it is working?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.