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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jhodasoft
Frequent Visitor

Calculate

Good afternoon! The idea is to put zero and not blank spaces. Can someone help me?

jhodasoft_0-1676669774014.png

I did the following (see image) but the filter does not recognize me and sets the entire context to zero. Thanks for the support provided.

jhodasoft_1-1676669879671.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@jhodasoft 

Please try

=
IF (
NOT ISEMPTY ( fact_saidi_saifi ),
COALESCE (
CALCULATE (
DIVIDE ( [Total_afec], [min_cliente] ),
fact_saidi_saifi[gendist] = "T"
),
0
)
)

View solution in original post

6 REPLIES 6
tamerj1
Super User
Super User

@jhodasoft 

Please try

=
IF (
NOT ISEMPTY ( fact_saidi_saifi ),
COALESCE (
CALCULATE (
DIVIDE ( [Total_afec], [min_cliente] ),
fact_saidi_saifi[gendist] = "T"
),
0
)
)

@tamerj1 It worked!, Thank you very much for the support. Greetings from Iquitos, Loreto, Perú.

@jhodasoft 

Pretty sure it's a beautiful place 

FreemanZ
Super User
Super User

hi @jhodasoft 

in the code of your first screenshot, try to add "+0" in the end. 

like:

CALCULATE(...)+0

@FreemanZ  Thanks for answering, I did it and it keeps putting zero to everything, the filter doesn't recognize me

jhodasoft_1-1676677381162.png

 

 

 

hi @jhodasoft 

consider providing sample dataset with expected result.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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