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
Karthik12
Post Patron
Post Patron

Total not showing zero

Hi,

I have a table with Plan, Actual and Gap columns. But, when plan and actual are equal, gap not showing as "0" and it is blank now.

Can you help to support?

Karthik12_0-1687943784560.png

 

my Gap measure as below

 
Gap=
IF(
    [Plan] = [Actual],0, [Gap]
    )
1 ACCEPTED SOLUTION

@Ahmedx Hi, I have modified my Gap measure with below one and issue solved.

Gap = VAR _gap = SUMX(VALUES('type'[type]), [Test MTD actual sum] - [Test MTD plan sum]) RETURN IF(_gap = 0, 0, _gap)

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

@Ahmedx Hi, I have modified my Gap measure with below one and issue solved.

Gap = VAR _gap = SUMX(VALUES('type'[type]), [Test MTD actual sum] - [Test MTD plan sum]) RETURN IF(_gap = 0, 0, _gap)

Helpful resources

Announcements
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.