<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.

     

    主站蜘蛛池模板: 亚洲精品中文字幕乱码三区 | 亚洲精品高清在线| 亚洲天堂2017无码中文| h视频在线观看免费完整版| 亚洲AV无码乱码在线观看裸奔| 久久99久久成人免费播放| 久久久久亚洲精品天堂久久久久久 | 久久亚洲精品无码播放| 久久毛片免费看一区二区三区| 亚洲伊人成无码综合网| 成人黄网站片免费视频| 亚洲男人天堂2017| 18禁网站免费无遮挡无码中文| 亚洲人成网国产最新在线| 日韩免费一级毛片| 污视频网站免费观看| 亚洲性久久久影院| 免费视频精品一区二区三区 | 亚洲乱色熟女一区二区三区蜜臀| AV片在线观看免费| 97碰公开在线观看免费视频| 亚洲免费网站在线观看| 国产片免费在线观看| 久久久免费观成人影院| 亚洲精品美女久久久久| 久久久久久国产a免费观看不卡| 亚洲韩国精品无码一区二区三区| 免费A级毛片av无码| 在线精品亚洲一区二区| 亚洲狠狠爱综合影院婷婷| 一级特黄aa毛片免费观看| 亚洲中文无码亚洲人成影院| 亚洲日韩涩涩成人午夜私人影院| 久久青草免费91观看| 亚洲欧洲专线一区| 国产AV无码专区亚洲AV漫画| 国产亚洲精品2021自在线| 国产亚洲精品a在线无码| 成年性羞羞视频免费观看无限| 中文字幕在线观看亚洲| 国产成人免费高清在线观看|