if for-each-group BI Publisher报告中的条件

时间:2016-06-24 02:58:46

标签: xml rtf bi-publisher

我试图获得一个摘要输出,该输出显示基于具有不同CwaOrderType的Product的数据。

<?for-each-group:OrderEntry-LineItems[../../CwaChannel='Customer Portal' and ../../Status='Submitted'];Product?>
<?Product?>
<?if:CwaOrderType='PRS Sales'?>
   <?count(current-group()/.)?> 
   <?sum(current-group()/CwaLineTotalAmount2)?>
<?end if?>
<?if:CwaOrderType='PRS Switching'?>
   <?count(current-group()/.)?> 
   <?sum(current-group()/CwaSwitchOutUnits)?>
<?end if?>
<?end for-each-group?>

但是,它会将输出返回空白。如果我删除了if条件,它可以工作但是不准确。你们中的任何一个人能告诉我缺少什么吗?

0 个答案:

没有答案