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

WEBI Report Not Converting Properly When Using Crosstab Function

$
0
0


I have a very basic WEBI report that works properly when run as a table. When I try to convert the report to a crosstab I get unusual results.

 

 

The BI logic was the following

 

 

If order contains any Carepak eligible item - count 1 else count 0

If order contains any Carepak item - count 1 else count 0

If count of eligible and count of carepak > 0 then "Has Attachment"

If count of eligible > 0 and count of carepak = 0 the "Missed Attachment"

If count of both = 0 then "Not eligible"

 

I have attached an example of my result. I want to put the yellow table into the green format, but as you see I cant and I don't know why. I made a sample below it where I used order quantity instead and it works. So I don't know why COUNT([Order Number]) doesn't.

 

Carepak Status Formula

=If([Count of Carepak Eligible Items]>0 And [Count of Carepaks]=0;"Missed Attachment";

If([Count of Carepak Eligible Items]>0 And [Count of Carepaks]>0;"Has Attachment";"Not Eligible"))
ForEach([Order Number];[ECOM Order Created Date (MM/DD/YYYY)])

 

Carepak Attachment Rate Formula

=Sum([Order Count] Where([Carepak Status]="Has Attachment"))/

Sum([Order Count] Where([Carepak Status]<>"Not Eligible"))

 

Count of Carepak Eligible Items Formula

=Sum(If([Product Code (8 Digit)] InList("7562A002";"2897A002";"9332A002";"4625A002";"0155B002";"4624A002";"5157B002";"5159B001";"5160B001";"5158B001";"5169B001";"9126B003";"8575B001";"5169B003";"8595B001";"8575B003";"9123B002";"6558B001";"5169B005";"8595B003";"4460B003";"6558B003";"8595B005";"4460B004";"8469B002";"4460B016";"8469B009";"3814B004";"9128B002";"9128B016";"8469B016";"3814B010";"3814B016";"6825B002";"5247B002";"5246B002";"2805B002";"2356A002";"9389B002";"5296B002";"2357A002";"2514A002";"6310B002";"9522B002";"6473A003";"2042B002";"6472A002";"8114B002";"2537A003";"2044B002";"9519B002";"2507A002";"8546B002";"2515A003";"2519A003";"0284B002";"2562A002";"2518A003";"3558B002";"9521B002";"2510A003";"2509A003";"5179B002";"6097B002";"4657A006";"5345B002";"5178B002";"9517A002";"0345B002";"9518A002";"2752B002";"3560B002";"1242B002";"2540A002";"2536A004";"2544A003";"6221B030";"8328B002";"8330B002";"9489B002";"9489B022";"9489B042";"9539B002";"9539B022";"9539B042";"9487B002";"9487B022";"9500B027";"5289B019";"6223B002";"8331B002";"8331B040";"8331B021";"5781B002";"6987B002";"5783B002";"6989B002";"8749B002";"6224B002";"4789B018";"5291B019";"6225B002";"8580B002";"8580B021";"4789B002";"5784B020";"6990B002";"8750B002";"8333B002";"8333B022";"5292B002";"6226B002";"6226B050";"6226B024";"8335B002";"8335B027";"8335B026";"8335B025";"6991B002";"5786B002";"6992B002";"8115B001";"8253B001";"8255B001";"8254B001";"4260B001";"4261B001";"4259B001";"9150B001";"9159B001";"9156B001";"9153B001";"8159B001";"8157B001";"8158B001";"8599B001";"8605B001";"8608B001";"8602B001";"9144B001";"9147B001";"4943B001";"4942B001";"4944B001";"4941B001";"6191B001";"6188B001";"6189B001";"6183B001";"8191B001";"8197B001";"8194B001";"9356B001";"9365B001";"9362B001";"9359B001";"5035B001";"6182B001";"6149B001";"6150B001";"6148B001";"8206B001";"8410B001";"8676B001";"5269B001";"6021B001";"9344B001";"9350B001";"9347B001";"8409B001";"9544B001";"9340B001";"9342B001";"9341B001";"5663B001";"5664B001";"6354B001";"9545B001";"9769B001";"5130B001";"5128B001";"4194B001";"4192B001";"8224B001";"8225B001";"4248B001";"6145B001";"6145B035";"8230B014";"9000B001";"9000B007";"9000B008";"6351B001";"6798B001";"6799B001";"5043B001";"5900B001";"6195B001";"9337B001";"9168B001";"9169B001";"9770B001";"9547B001";"6353B001";"9338B001";"9339B001";"9543B001";"4343B001";"5251B001";"6352B001";"5244B001";"5245B001";"6350B001";"9546B016";"9546B001";"8407B001";"8406B001";"5249B001";"9167B015";"9167B001";"5959B001";"5960B001";"8426B001";"8427B001";"6832B002";"6831B002";"6827B002";"6830B002";"2105B002";"5320B002";"5315B002";"5805B002";"2925B002";"4507B002";"9622B002";"4508B002";"9623B002";"3297B002";"6218B002";"4103B022";"8745B002";"5287B002";"6219B002";"0012B022";"4895B002";"8747B002";"1446B002";"8746B002";"8455B003";"8455B005";"8153B001";"9114B002";"8152B005";"9176B001";"9176B002";"5975B003";"9175B001";"9173B004";"4923B002";"8063B002";"8454B001";"8443B002";"9964B002";"9880B002";"9877B002";"9878B002";"9882B002");

1;0))

 

Count of Carepaks Formula

=Sum(If(Left([Product Code (8 Digit)];5) InList("9620B";"9703B";"9666B";"6463B";"9621B";"9619B");

1;0))

 

Order Count Formula

=Count([Order Number])

 

Any help would be greatly appreciated. 

 

  


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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