Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Null Calculation: Shipped Not Invoiced

My data:

   

Ship Req #Shipped DateItem CodeDescription[Bill Number]Shipped ValueShipped Qty
1137310/28/2015209104Acme Apple9540299597
1137110/28/2015386008Charles Cat95371,12126,568
1137110/28/2015386009Charles Cat95372,29654,432
1130910/28/2015109115ADoug's Dog9538972528
1137611/02/2015103089Acme Green Apple954114,5642,896
1143211/03/2015581003Farmers Fox-6792,380
1145011/03/2015103089Acme Green Apple954114,5642,896

The "Bill Number" column is in a separate column from the other items which are all in one table.

I am trying to create a "Shipped Not Invoiced" chart.  The result should be the one line with Ship Req # 11432.  Since an invoice has not been created, the Bill Number does not exist.

The code to create the Shipped Value is

sum( $(_SetShippedActualDate)

IF(
$(_SysDBVersionNum)>=13.2,
(
[Shipped Picked Quantity] *
[Shipping Unit Price] *
[Shipping Rate $(_SysBaseCurrency)] /
[Shipping Price Unit Conversion]),
(
[Shipped Picked Quantity] *
[Shipping Unit Price] *
[Shipping Rate $(_SysBaseCurrency)] *
[Shipping Price Unit Conversion])
)

How do I sum all "Ship Req #" that do not have a corresponding "Bill Number"?

Thank you for your help!

2 Replies
Not applicable
Author

you can use something like if(isnull(billnumber),'Not Invoiced','Invoiced') as a flag or you can put this as an and condition 'and isnull(billnumber)' in your  condition

krishna_2644
Specialist III
Specialist III

How do I sum all "Ship Req #" that do not have a corresponding "Bill Number"?


Do you want to sum up all the numbers which are like IDs ?



Any ways if you want sum up a field Ship Req # that do not have a corresponding "Bill Number" then :


if(len([Bill Number])=0, Sum([Ship Req #])) - in both script and UI


should work.


Let me know.