2016-10-27 3 views
0

Je dois avoir un total pour chaque regroupement dans un groupe de lignes dans SSRS. Actuellement, un total est ajouté directement à la fin du groupe de lignes.Comment ajouter des totaux à chaque groupe dans SSRS

Donc, si j'ai les données suivantes:

TeamName BusinessSegment PaymentPeriod BusinessArea  ProductType  PolicyCount201501 Premium201501 
--------------------------- ------------- ---------------- ---------------- ------------------ --------------- 
Office  Non-property  Monthly  Commercial Lines Sectional Title 0.00     0.00    
Office1  Non-property  Annual   Commercial Lines C&I Generic (Web 1.00     24025.00   
Office1  Non-property  Annual   Commercial Lines Property Protect 1.00     24025.00  
Office1  Non-property  Monthly  Commercial Lines BizzInsure   1.00     24025.00  
Office1  Non-property  Monthly  Commercial Lines Sectional Title 1.00     24025.00  
Office2  Non-property  Annual   Commercial Lines Property Protect 1.00     24025.00   
Office2  Non-property  Annual   Commercial Lines Sectional Title 1.00     24025.00   
Office2  Non-property  Annual   Commercial Lines Sectional Title 1.00     24025.00   
Office2  Non-property  Monthly  Commercial Lines M&F Commercial B 1.00     24025.00   
Office2  Non-property  Monthly  Commercial Lines Sectional Title 1.00     24025.00 

Je veux que la sortie soit comme ceci:

Team Name  Business Segment Payment Period Business Area  Product Type Policy Count 201501  Premium 201501 
Office   Non-property  Monthly   Commercial Lines Sectional Title 0.00     0.00 
                Total        0.00     0.00 
            Monthly Total          0.00     0.00 
       Non-property Total              0.00     0.00 
Office Total                   0.00     0.00 
Office1   Non-property  Annual   Commercial Lines Something1  1.00     1.00 
Office1   Non-property  Annual   Commercial Lines Something2  1.00     1.00 
                Total        2.00     2.00 
            Annual Total          2.00     2.00 
Office1   Non-property  Monthly   Commercial Lines Something1  0.00     1.00 
Office1   Non-property  Monthly   Commercial Lines Something2  1.00     1.00 
                Total        1.00     2.00 
            Monthly Total          1.00     2.00 
       Non-property Total              3.00     4.00 
Office1 Total                   3.00     4.00 
Office2   Non-property  Annual   Commercial Lines Something1  0.00     1.00 
Office2   Non-property  Annual   Commercial Lines Something2  1.00     1.00 
                Total        1.00     2.00 
            Annual Total          1.00     2.00 
Office2   Non-property  Monthly   Commercial Lines Something1  2.00     1.00 
Office2   Non-property  Monthly   Commercial Lines Something2  1.00     1.00 
                Total        3.00     2.00 
            Monthly Total          3.00     2.00 
       Non-property Total              4.00     4.00 
Office2 Total                   4.00     4.00 
Grand Total                    7.00     8.00 

Notez que PaymentPeriod sont regroupées par Monthly et Annually et il y a un total après Monthly et un total après Annually. À l'heure actuelle, ce qui suit est rendu (Notez le seul Annual total à la fin de chaque PaymentPeriod groupement:

Team Name  Business Segment Payment Period Business Area  Product Type Policy Count 201501  Premium 201501 
Office   Non-property  Monthly   Commercial Lines Sectional Title 0.00     0.00 
                Total        0.00     0.00 
            Monthly Total          0.00     0.00 
       Non-property Total              0.00     0.00 
Office Total                   0.00     0.00 
Office1   Non-property  Annual   Commercial Lines Something1  1.00     1.00 
Office1   Non-property  Annual   Commercial Lines Something2  1.00     1.00 
                Total        2.00     2.00 
Office1   Non-property  Monthly   Commercial Lines Something1  0.00     1.00 
Office1   Non-property  Monthly   Commercial Lines Something2  1.00     1.00 
                Total        1.00     2.00 
            Annual Total          3.00     4.00 
       Non-property Total              3.00     4.00 
Office1 Total                   3.00     4.00 
Office2   Non-property  Annual   Commercial Lines Something1  0.00     1.00 
Office2   Non-property  Annual   Commercial Lines Something2  1.00     1.00 
                Total        1.00     2.00 
Office2   Non-property  Monthly   Commercial Lines Something1  2.00     1.00 
Office2   Non-property  Monthly   Commercial Lines Something2  1.00     1.00 
                Total        3.00     2.00 
            Annual Total          4.00     4.00 
       Non-property Total              4.00     4.00 
Office2 Total                   4.00     4.00 
Grand Total                    7.00     8.00 

Comment puis-je obtenir cette s'il vous plaît

Répondre

1

Ajouter un autre groupe d'enfants à votre groupe Payment Period et ajouter au total? à votre deuxième groupe. supprimer la colonne d'affichage pour le premier groupe (ne supprimez pas le premier groupe).

enter image description here

Sortie:

enter image description here

+0

Impressionnant, a travaillé comme un charme. J'ai une autre question concernant le basculement des groupes, mais je vais poster comme une nouvelle question ... si vous voulez une pression sur p2k. –