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
LuizPoleza
Frequent Visitor

Matrix and tables total incorrect

Hello there, I need some help

 

One of my users noticied that the totals being shown on matrix (and I tried on a table, same wrong results) are wrong.

See the example below. It is "missing" 1 quantity in both collumns, and I tried filtering everything to see if I can get the missing row, but I didn't find it.

When exporting to Excel and doing a sum, the totals are correct.

Then, I went back to PBI and by using a calculator, I manually sum every single row I can see on the matrix, and it was RIGHT!

So, the data is not wrong, but the total itself.

 

sum.png

 

For the calculated collumn, this is the DAX

 

CALCULATE(
    DISTINCTCOUNT(FuncionariosAtivos[Matricula]),
    FuncionariosAtivos[DATA] = Today()
)

 

 

Here is a pastebin link for the exported DATA (CSV format)

https://pastebin.com/J21gcJnb

 

Can you provide some help? This is driving me nuts!

 

EDIT: there are no filters on the page and on the visual

5 REPLIES 5
LuizPoleza
Frequent Visitor

Hi @AmiraBedh 

Thank you so much for your time. I really appreciate.

 

I am not using a calculated collumn. "Realizado" is a DAX measure.

I didn't understood. Can you further elaborate?

Anonymous
Not applicable

Hi, @LuizPoleza 

 

Can you provide source data or example files before the calculation? This will better describe your problem.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,

Community Support Team _Charlotte

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

Hi @Anonymous 

I´m sorry, can you tell which sample data you need?

I´ve provided the example on pastebin on the first post, as per @AmiraBedh tried in her solution

AmiraBedh
Super User
Super User

You should use a measure and not a calculated column, the total row does not simply sum the visible rows; instead, it evaluates the DAX formula in the total context :

My Measure = SUMX(
    FILTER(
        FuncionariosAtivos,
        FuncionariosAtivos[Realizado] >= 0
    ),
    FuncionariosAtivos[Realizado]
)

 

AmiraBedh_0-1737311767619.png

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Hi @AmiraBedh 

Thank you so much for your time. I really appreciate.

 

I am not using a calculated collumn. "Realizado" is a DAX measure.

I didn't understood. Can you further elaborate?

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.

Top Kudoed Authors