cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NewBee117
Kudo Collector
Kudo Collector

Formula does not work when value is zero

What to do to get this formula to work when "Value(txt_WeeklyAdjustment.Text)" is zero? It calculates correctly with any other numbers, just not zero. The actual formula = Adjustment: gal_Monthly.Selected.Adjustment + Value(txt_WeeklyAdjustment.Text)

 

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Community Champion
Community Champion

@NewBee117 

 

You can place following formula for Adjustment:

if(Value(txt_WeeklyAdjustment.Text) > 0,gal_Monthly.Selected.Adjustment + Value(txt_WeeklyAdjustment.Text), gal_Monthly.Selected.Adjustment )

 

Please give a try and let me know if you still have the same issue.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

View solution in original post

3 REPLIES 3
rsaikrishna
Community Champion
Community Champion

@NewBee117 

 

You can place following formula for Adjustment:

if(Value(txt_WeeklyAdjustment.Text) > 0,gal_Monthly.Selected.Adjustment + Value(txt_WeeklyAdjustment.Text), gal_Monthly.Selected.Adjustment )

 

Please give a try and let me know if you still have the same issue.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

eka24
Super User
Super User

Consider this:

Coalesce(gal_Monthly.Selected.Adjustment) +Coalesce(txt_WeeklyAdjustment.Text)
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
NewBee117
Kudo Collector
Kudo Collector

@eka24 your suggestion does not work.

@rsaikrishna I modified your formula, it is now working. Thanks.

 Adjustment: If(
Value(txt_WeeklyAdjustment.Text) <> 0,
gal_Monthly.Selected.Adjustment + Value(txt_WeeklyAdjustment.Text),
gal_Monthly.Selected.Adjustment - gal_Weekly.Selected.Adjustment
)

Btw, the way it treats zero, is it a bug or "By Design?". I like to know the reason if it is "By Design".  🙂

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,900)