BI Publisher-水平显示数据MONTH

问题描述 投票:1回答:1

我有以下数据模型:

ABC

显示器

20

4月

。25

20

PRIMARY

CNTR000000

-

DICS

小时

75

3月

。25

8

PRIMARY

CNTR001111

如何水平显示结果,例如今年四月,三月

rtf bi-publisher xml-publisher
1个回答
0
投票

查找BI Publisher Report Designer's Guide文档并寻找cross-tab

enter image description here

想要这样的东西:

对于月份列:

<?for-each-group@column:RESULTS;MONTH?>
<?MONTH?>
<?end for-each-group?>

对于行:

<?for-each-group:RESULTS;TYPE?>
<?TYPE?>
<?end for-each-group?>

对于单元格:

<?for-each-group@cell:current-group();MONTH?>   
<?sum(current-group()//HOURS)?>
<?end for-each-group?>
© www.soinside.com 2019 - 2024. All rights reserved.