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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.