<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 馬達+斯加 閱讀(481) 評論(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.

     

    主站蜘蛛池模板: 亚洲视频在线不卡| 亚洲午夜无码AV毛片久久| 亚洲AV成人一区二区三区AV| 美女露隐私全部免费直播| 免费中文字幕不卡视频| 搜日本一区二区三区免费高清视频 | 国产免费久久精品久久久| 亚洲avav天堂av在线网毛片| 国产在线98福利播放视频免费| 日韩亚洲翔田千里在线| 亚洲午夜无码片在线观看影院猛| 中文字幕不卡高清免费| 亚洲爱情岛论坛永久| 999国内精品永久免费视频| 亚洲日本成本人观看| 亚洲中文字幕丝袜制服一区| 国产一二三四区乱码免费| 亚洲Av熟妇高潮30p| xx视频在线永久免费观看| 亚洲免费网站观看视频| 亚洲高清偷拍一区二区三区| 免费一级毛片无毒不卡| 亚洲人成人77777网站不卡| 在线免费观看a级片| 久久久久久久久久久免费精品| 亚洲综合在线观看视频| 免费阿v网站在线观看g| 特黄aa级毛片免费视频播放| 亚洲ⅴ国产v天堂a无码二区| 中文字幕影片免费在线观看 | 国产精品色午夜视频免费看| g0g0人体全免费高清大胆视频| 亚洲产国偷V产偷V自拍色戒| 国语成本人片免费av无码| 亚洲精品视频免费| 亚洲av无码片区一区二区三区| 亚洲?V乱码久久精品蜜桃| 91精品国产免费久久国语麻豆| 亚洲精华国产精华精华液网站| 夜夜春亚洲嫩草影院| 成人免费视频88|