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

     

    主站蜘蛛池模板: 久久久影院亚洲精品| 国产成人免费永久播放视频平台| 最新久久免费视频| 久久国产一片免费观看| 青青草97国产精品免费观看| 青草青草视频2免费观看| 香蕉97碰碰视频免费| 一级毛片视频免费| g0g0人体全免费高清大胆视频| 亚洲精品黄色视频在线观看免费资源| 亚洲精品视频免费观看| 免费无码H肉动漫在线观看麻豆| 最近的2019免费中文字幕| 久久九九全国免费| 99精品视频在线观看免费播放| 在线观看www日本免费网站| 99在线精品免费视频九九视| 久久WWW色情成人免费观看| 天堂在线免费观看中文版| 国产精品免费看香蕉| 亚洲片一区二区三区| 亚洲日韩v无码中文字幕| 久久青青成人亚洲精品| 亚洲黄色在线观看网站| 亚洲男人天堂2018av| 美女被免费视频网站| 日本免费A级毛一片| 6080午夜一级毛片免费看6080夜福利| 日本在线高清免费爱做网站| 在线精品免费视频无码的| 成人亚洲综合天堂| 日本亚洲视频在线| 亚洲成人一级电影| 亚洲精品无码久久| 一个人免费观看视频在线中文| 99精品视频在线免费观看| 全免费一级毛片在线播放| 亚洲中文字幕无码专区| 久久久久亚洲精品天堂| 亚洲色无码专区一区| 国产99精品一区二区三区免费 |