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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Bpaula1975
New Member

PowerBI SUM issue on Totals

I have this table in Power BI:

Bpaula1975_0-1686908051178.png

The mexico and germany values ​​are masked with the following formula:

Bpaula1975_2-1686908253940.png

But the total is showing 118.726,350,26 instead of 74.271.657,33.

I need that the total don't SUM the hidden values.

 

Thanks,

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Bpaula1975 

please try

Total_2 =
COALESCE (
SUMX (
VALUES ( financials[Country] ),
VAR ValorTotal =
CALCULATE ( SUM ( financials[Sales] ) )
RETURN
IF ( AND ( ValorTotal < 23900000, ValorTotal > 0 ), BLANK (), ValorTotal )
),
"--"
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Bpaula1975 

please try

Total_2 =
COALESCE (
SUMX (
VALUES ( financials[Country] ),
VAR ValorTotal =
CALCULATE ( SUM ( financials[Sales] ) )
RETURN
IF ( AND ( ValorTotal < 23900000, ValorTotal > 0 ), BLANK (), ValorTotal )
),
"--"
)

Perfect!!!!!!

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.