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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.