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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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 PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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