Home » Developer & Programmer » Reports & Discoverer » Divided by Zero error
icon9.gif  Divided by Zero error [message #148138] Tue, 22 November 2005 21:57 Go to next message
sourajit_seth
Messages: 38
Registered: November 2005
Location: India
Member
Hello
In report I have create one percentage column, choosing the option "Grand Total for each column". It is showing the percentage of each value for a column (say x). If sum(x) > 0, it is working fine, but in case all values of x are 0 , it is showing "#DIV/0!" (zero divide error) , since the denominator is 0 (sum(x)=0). So I want to show "N.A." or any text or 0 , instead of "#DIV/0!. Let me know the way.

Thanks in advance
Sourajit
Re: Divided by Zero error [message #148310 is a reply to message #148138] Wed, 23 November 2005 10:03 Go to previous message
orahugo
Messages: 32
Registered: October 2005
Location: England
Member
Do an NVL. Take your existing piece of code and put it in place of Z in the following text..

nvl(Z, 'N/A')

[Updated on: Wed, 23 November 2005 10:03]

Report message to a moderator

Previous Topic: .prt file problem converting report 2.5 to 6i
Next Topic: oracle report issue
Goto Forum:
  


Current Time: Tue Nov 26 08:54:07 CST 2024