Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Formula function for Adding a calculated column - No In database data received

$
0
0

I am trying to use the formula function to add a column for "Item Retail" = Sales/Sales qty

If there is no sales, show "zero" instead of "#DIV/0!"

The data type is "double"

ItemSales Sales QtyItem retail
Apple15003005
Banana340025001.36
Pear00#DIV/0!

 

Here is what I entered in the SQL expression under IDB enviroment...

if "Daily QTY"=0 Then "Item Retail"=0, Else"Item Retail" = Daily POS"/"Daily QTY" Endif

 

but I continue having syntax errors for this formula when running under In database...

Unknow variable "Item Retail"  

 

Did I miss any steps? 

Thank you. 

 

 

 

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles