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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.