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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.