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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Karthik12
Helper V
Helper V

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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