<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的网站| 国产成人精品免费视频大| 国产精品成人无码免费| 亚洲欧美一区二区三区日产| 一个人看www在线高清免费看| 精品亚洲AV无码一区二区| 日韩免费精品视频| 亚洲国产91在线| 最近最好的中文字幕2019免费| 亚洲精品无AMM毛片| 国产免费人成视频在线观看| 美女裸免费观看网站| 亚洲精品偷拍视频免费观看 | 亚洲伊人色欲综合网| a级在线观看免费| 亚洲激情中文字幕| 亚洲成人免费电影| 亚洲午夜无码久久| 吃奶摸下高潮60分钟免费视频| v片免费在线观看| 久久久久亚洲av无码专区蜜芽| 一级毛片在线免费看| 亚洲人成影院77777| 国产禁女女网站免费看| 乱爱性全过程免费视频| 久久久无码精品亚洲日韩蜜桃| a拍拍男女免费看全片| 亚洲精品GV天堂无码男同| 亚洲精品美女久久久久99小说| 四虎影视在线影院在线观看免费视频 | 日本在线高清免费爱做网站| 亚洲Av无码国产一区二区 | 国产福利免费在线观看| a色毛片免费视频| 亚洲一级毛片在线观| 免费A级毛片无码A| 37pao成人国产永久免费视频| 亚洲精品无码久久久久牙蜜区| 亚洲色成人网站WWW永久| 午夜免费1000部| 中美日韩在线网免费毛片视频|