cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RomanKorchak
Level: Powered On

replace blank/empty with zero

Hi All

I have an App which calculates some values from SP list and sometimes return a zero. I need to show number with "," separating thouthands so I am using text function (  Text(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020),"[$-en-GB]#,###") ) which works fine, but if value is 0 then value is blank.

I tried 

If(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020)=0,
0,
Text(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020),"[$-en-GB]#,###")
)

but it doest not add comma to separate thouthand .

Any ideas?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: replace blank/empty with zero

Hi @RomanKorchak 

 

Please use the below expression and this should resolve your issue:
 
If(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020)=0,
Text("0","[$-en-US]#,###"),
Text(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020),"[$-en-GB]#,###")
)
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
2 REPLIES 2
Super User
Super User

Re: replace blank/empty with zero

Hi @RomanKorchak 

 

Please use the below expression and this should resolve your issue:
 
If(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020)=0,
Text("0","[$-en-US]#,###"),
Text(Sum(Filter(flist, StartsWith(Sales_Definition.Value, "Probable" ) ) , Value2020),"[$-en-GB]#,###")
)
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Highlighted
Community Support Team
Community Support Team

Re: replace blank/empty with zero

Hi @RomanKorchak 

 

Do you test with @yashag2255 's suggestion?

Is it works fine?

If it fix your issue,please accept it as solution.

More information:

function-text

 

Best Regards.

Yumia

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 83 members 4,545 guests
Please welcome our newest community members: