Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Division by zero was attempted in webi report BO 3.0

$
0
0


Hi,

 

I created a object in universe level to calculate % of Cancel and % of Validation, These two objects are stored in one Class and i dont have any issues while generate the reports.. But, I want to add Product Name in the same report which the object is taken from another Class and while generate the report i am getting the errro divide by zero was attempted. i dont get any error when i validate the below code.

 

Can anyone let me know what causes the error when adding the Product Name?

 

Code :

 

SELECT

  SUM(DB2ADMIN.PRO_DLY. CNL_AMT),

  SUM(DB2ADMIN.PRO_DLY.PRO_AMT)

,

  SUM(DB2ADMIN.PRO_DLY. VLD_AMT )/SUM(DB2ADMIN.PRO_DLY. PRO_AMT )*100,

  SUM(DB2ADMIN.PRO_DLY. CNL_AMT )/SUM(DB2ADMIN.PRO_DLY. PRO_AMT )*100,

  DB2ADMIN.PRTDS.PRODUCT_DESC

FROM

  DB2ADMIN.PRO_DLY,

  DB2ADMIN.PRTDS,

  DB2ADMIN.DTE

WHERE

  ( DB2ADMIN.PRTDS.PRODUCT_KEY=DB2ADMIN.PRO_DLY.PRODUCT_KEY  )

  AND  ( DB2ADMIN.PRO_DLY.DATE_KEY=DB2ADMIN.DTE.DATE_KEY  )

  AND 

  date(DB2ADMIN.DTE.CAL_DAY_DT)  BETWEEN  @prompt('Enter Cal Date(Start):','D','Time Period (All Games)\Cal Date',Mono,Free,Persistent,,User:1)  AND  @prompt('Enter Cal Date(End):','D','Time Period (All Games)\Cal Date',Mono,Free,Persistent,,User:0)

GROUP BY

  DB2ADMIN.PRTDS.PRODUCT_DESC

 

Exact error from webi report :

 

"""

A database error occured. The database error text is: [IBM][CLI Driver][DB2/LINUXX8664] SQL0801N  Division by zero was attempted.  SQLSTATE=22012

. (WIS 10901)"""

 

Thanks,


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>