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