<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 84, comments - 54, trackbacks - 0, articles - 0
       :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    How to conditionally hide rows in Cognos report?

    Posted on 2007-08-07 17:23 馬達+斯加 閱讀(491) 評論(0)  編輯  收藏 所屬分類: Java Report


    Data

    Estate

    Block

    Customer

    Status

    ALC

    1

    AAA

     

    ALC

    1

    BBB

    Settle

    ALC

    1

    CCC

     

    ALC

    2

    DDD

    Settle

    ALC

    2

    EEE

     

    RequirementCount records by estate, block, hide customer with status = ‘Settle’ when display.

    Estate

    Block

    Customer

    Status

    ALC

    1

    AAA

     

    ALC

    1

    CCC

     

    Settled case:

    1

     

     

    Total case:

    3

     

     

    ALC

    2

    EEE

     

    Settled case:

    1

     

     

    Total case:

    2

     

     

     

    It is a piece of cake that implementing this report in Crystal report, but it spent me much time in Cognos ReportNet—I can’t find out how to hide a whole row.

    At first, I have tried to control visibility of the fields with conditional variable. But, there still existed a blank row though all the fields were hidden.

    Estate

    Block

    Customer

    Status

    ALC

    1

    AAA

     

    ALC

    1

    CCC

     

     

     

     

     

    Settled case:

    1

     

     

    Total case:

    3

     

     

    ALC

    2

    EEE

     

     

     

     

     

    Settled case:

    1

     

     

    Total case:

    2

     

     

    Another way I have tried is wrapping all fields with conditional block. The blank rows were still there, just with smaller height.

     

    Finally, I gave up finding out which option could be used to hide the whole row. I have amended the SQL with COUNT(…) OVER (PARTITION BY …):

    SELECT estate, block, customer, status, count(customer) over (partition by estate, block) as totalCase FROM table ORDER BY estate, block.

    The retrieved data with the amended SQL:

    Estate

    Block

    Customer

    Status

    totalCase

    ALC

    1

    AAA

     

    3

    ALC

    1

    BBB

    Settle

    3

    ALC

    1

    CCC

     

    3

    ALC

    2

    DDD

    Settle

    2

    ALC

    2

    EEE

     

    2

    In the last step, A filter was added to the details in the report: status <> ‘Settle’, and the calculation of grouping area ‘Total Case’ was set to Average.

     

    主站蜘蛛池模板: 亚洲自偷自偷精品| 国产成人aaa在线视频免费观看| 国产成人亚洲精品影院| 久久精品国产亚洲av品善| 天天看免费高清影视| 自拍偷区亚洲国内自拍| 黄色成人网站免费无码av| 亚洲狠狠成人综合网| 最近中文字幕mv免费高清电影| 亚洲欧美黑人猛交群| 日本免费网站观看| 深夜A级毛片视频免费| 国产亚洲精品拍拍拍拍拍| a级毛片免费播放| 亚洲Av综合色区无码专区桃色| 日韩精品免费视频| 久久综合亚洲色一区二区三区 | 久久久久一级精品亚洲国产成人综合AV区| 妇女自拍偷自拍亚洲精品| 免费在线视频一区| 特级做A爰片毛片免费看无码 | 亚洲熟妇成人精品一区| 免费看小12萝裸体视频国产| av片在线观看永久免费| 亚洲天天做日日做天天欢毛片| 30岁的女人韩剧免费观看| 亚洲日韩国产AV无码无码精品| 亚洲精品国产综合久久一线| 日本免费高清视频| 亚洲国产精品久久久久秋霞小| 国产亚洲色婷婷久久99精品91| 99热在线观看免费| 亚洲狠狠婷婷综合久久蜜芽| 国产亚洲av片在线观看16女人 | 亚洲AV无码一区二区乱子伦| 色影音免费色资源| 新最免费影视大全在线播放| 亚洲成AV人在线观看网址| 三级黄色免费观看| 亚洲国产精品久久人人爱| 国产日产成人免费视频在线观看|