Trying to Add Sub Row Group inside Parent but flush left in the nested cell

前端 未结 1 891
醉话见心
醉话见心 2020-12-30 03:03

What I am trying to do:

I am trying to create nested groups but I want the sub row group to show directly underneath the parent, flush to the left like the parent.

相关标签:
1条回答
  • 2020-12-30 03:44

    If I understood your question correctly, what you want is certainly possible, and it's certainly a pain to get it to work. Here's a small example with some mock data that should be more or less analogous to your situation.

    The dataset:

    Market    SubMarket
    ------    ---------
    A         1
    A         2
    A         3
    B         4
    B         5
    B         6
    B         7
    

    Here are the steps I've taken to create the table:

    1. Drag/drop a new, fresh table to the designer.

    2. Drag/drop the SubMarket field to the first column.

    3. Right-click the detail row and add a new parent group.

      Add parent group

    4. Group on Market and choose to add a group header row.

      New group settings

      As you've already noted, SSRS "helps" and adds an extra column.

    5. Right-click the extra (first) column and delete it.

    6. Select the cell in the header row for the group and enter "[Market]", or pick it from the quick-list.

      Add field to header row

    7. Finish up by filling in the other fields/columns/cells. For the header row drag/drop won't work, you'll have to pick the fields for that row yourself (or type 'em).

      This is the resulting table in preview (with some emphasis on the header row):

      Sample output

    Hope this helped!

    0 讨论(0)
提交回复
热议问题