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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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