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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.