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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Array Total Gives Incorrect Result for Rows and Columns

Good I have a matrix in which for the rows the client code is used (of the customer dimension) and for the columns, the type of product (of the dimension of products), for the values the distinctive count of the type of product is desired. The count is correct but the totals are not. The tables are not related to each other, only by the table in fact.

Would you know how to solve this problem?total matriz incorrecto.jpg

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

They are columns of different tables. The relationship between the tables are as follows (the columns used in the matrix are in red):

der_pbi.jpg

And the data sample from both tables looks like this; on the one hand dim_producto and on the other dim_cliente:

muestra_datos_pbi.jpg

Thanks from now!

Anonymous
Not applicable

Hi @Anonymous ,

 

Please forgive me for asking a few more questions.

What are your relationships in the data model?

Are the relationships as follows? Are the two relationships one-to-one, one-to-many or many-to-many?

vstephenmsft_0-1655796840510.png

And what does your TABLA_DE_HECHO look like?

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Anonymous ,

 

Are the values in your matrix a measure or a column?

If it's a measure, it is suggested to try creating a new measure like this:

New measure = SUMX('Table name', [Original measure])

or

New meausre =
VAR summarizedTable =
    SUMMARIZE (
        'Table',
        'Table'[Column1],
        'Table'[Column2],
        "Original measure", [Original measure]
    )
RETURN
    SUMX ( summarizedTable, [Original measure] )

If it's a column, I need some dummy data to reproduce, can you provide it?

 

Simliar blog: Power BI: Totals Incorrect and how to Fix it - Finance BI.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors