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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Fix blank values and infinite

I have some graphics that as the filter made the values of these graphs is blank or infinite, and according to the business rule that can happen but I need to make when this happens does not show anything, no value should be displayed, is possible to do that?

 

Untitled.png

6 REPLIES 6
Sean
Community Champion
Community Champion

@Anonymous for all Measures that give you BLANK() in Cards do the following...

 

= IF ( ISBLANK ( [Expression]), 0, [Expression] )

 

 

 

Sean
Community Champion
Community Champion

@Anonymous infinity happens when you divide by zero so instead of / use the DIVIDE function

 

= DIVIDE( [Numerator], [Denominator], 0)

 

Anonymous
Not applicable

@Sean

tried to use the DIVIDE function in my measure however is not working

 

% Target Revenue Surplus = (DIVIDE (CALCULATE (SUM (Facts [Vl_Suplementado]) * 100; Facts [OrigemRecurso_DS] = "Surplus Financial") / sum (Facts [Vl_ReceitaPrevista])) / 100); 0)

Sean
Community Champion
Community Champion

@Anonymous Try this...

% Target Revenue Surplus =
DIVIDE (
    CALCULATE (
        SUM ( Facts[Vl_Suplementado] ) * 100;
        Facts[OrigemRecurso_DS] = "Surplus Financial"
    );
    DIVIDE ( SUM ( Facts[Vl_ReceitaPrevista] ); 100; 0 );
    0
)
Anonymous
Not applicable

@Sean

works however when the numeric value is represented is bringing more decimal places

 

with a filter

Untitled.png

 

without filter

 

Untitled1.png

Sean
Community Champion
Community Champion

@Anonymous Try this... let me know if this works

% Target Revenue Surplus =
DIVIDE (
    CALCULATE (
        SUM ( Facts[Vl_Suplementado] );
        Facts[OrigemRecurso_DS] = "Surplus Financial"
    );
    SUM ( Facts[Vl_ReceitaPrevista] );
    0
)

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.

Top Solution Authors