Hide parent group if child groups are hidden

I have SSRS 2005 report.
Report structure - To show a particular account transactions for every company.
So user will select account then i have to show all transactions for that account for all companies.
Parent group - Account
Child group - Company
Details section is like below,
transactions id            transaction type          debit
          credit              difference
In the groups visibility for compnay group (chile group) i have set condition if diff is zero then hide
so its hiding child groups. but showing account i.e. parent group. 
My Report looks like,
Account : Acc001 (Parent group)
Company - ABC     (child group)
transactions id            transaction type          debit  
        credit          
difference    
t1                                   type 1                        4
t2                                   type 2                                    
        4
total by company            4                    4                   0
Company - XYZ            (child group)
transactions id            transaction type          debit  
        credit           difference    
t3                                   type 1                        100
t4                                   type 2                                    
         100
                                   total by company           100               100      
         0
total by account              104             104                 0       
so i am hiding companies ABC and XYZ but report still show last row total by account. so if abc and xyz are hidden i want to hide that account group (for e.g. Acc001).
h2007

Hi h2007,
According to your description, you have a report with detail rows showing transaction information, child group showing companies, and parent group showing account. Now you want to hide the detail row if the difference(debit-credit)=0, and if the detail row
is hidden, you want to hide the company as well. Right?
In Reporting Service, we can’t use a property of a text box as an expression when we use IIF() function to evaluate. But we can put this whole IIF() expression into a IIF() function for another textbox or group to set visibility. We tested your case in our
local environment. It works fine and completely achieve your goal. Here are steps and screenshots for your reference:
Create a table as described.
Right click on any textbox of detail row. Select Properties.
Click on Visibility tab, put this text into expression:
=IIF(SUM(Fields!Debit.Value)-SUM(Fields!Credit.Value)=0,true,false)
Select toggled by its parent group (Company).
Repeat step2 and step3 for each textbox of detail row.
Right click on textbox of Company. Select Properties.
Click on Visibility tab, put this text into expression:
=IIF(IIF(SUM(Fields!Debit.Value)-SUM(Fields!Credit.Value)=0,true,false),true,false)
Select toggled by its parent group (Account).
Right click on textbox of Account. Select Properties.
Click on Visibility tab, put this text into expression:
=IIF(IIF(SUM(Fields!Debit.Value)-SUM(Fields!Credit.Value)=0,true,false),true,false)
Go to Properties window, set InitialToggleState Expanded for Company and Account textbox
Save and preview.
Reference:
Expression Examples (Report Builder and SSRS)(See Properties->Visibility)
Expression driven visibility in a report
Best Regards,
Simon Hou

Similar Messages

  • Summarize (sum) a field in a child group to a parent group section

    Can someone tell me how to insert a summary (sum) of a field in a child group to a parent group?  The column is not in the detail row, only a group section.

    Hi Mark,
    As I understand from the description, you have 2 groups(child and parent) and you want to insert summary of the field in child group to a parent group.
    Try  following........
    Go to Insert -> summary
    Insert summary based on required field and then under the option "Summary Location" select the Parent Group.
    Please let us know if you are looking for something else.
    Regards
    Ankeet

  • Using ldap Network Management Functions how to get nested groups that are members of a parent group

    Using NetLocalGetMembers() I can get the users withing a group
    Using NetUserGetGroups() I can get the groups a user is part of.
    However, I cant find a function that will list the GROUPS that are part of another group.
    I have a group called APP_ADMIN,  it has user1, user2 and also groups ADMIN_GRP_A and ADMIN_GROUP_B
    I need a function to return ADMIN_GROUP_A, ADMIN_GOUP_B if I pass in APP_ADMIN
    or Alternativly, given ADMIN_GROUP_A give me its parent group (APP_ADMIN)
    I am writing a C++  dll that accesses these functions.

    Hi,
    Plz check this link.
    http://gallery.technet.microsoft.com/scriptcenter/Get-nested-group-15f725f2
    Ashish Gaur

  • Sort parent group by coloum of child group

    hi friends
    i want to display my report data in such way that it sorted by some coloumn of its child group
    by default report sorts data according to group levels even we use order by in our query.
    if some one has any idea or comments, welcome
    regards

    You need to make the detail information you want to sort on available in the upper level group. It all depends on how you need to sort. For example, if you sort by number of detail records in the group, add count formula to the parent group and set break order on it. Please provide more information on the sort rules for further assistance.

  • Why set child group 100% width didn't full fill the parent group?

    hey,bro.
    the black rect i set the explicit size the same as the parent group.
    and the white border rect i set the width and height 100%,however,as the snapshot shows,the white rect's right and bottom line didn't reach the side.
    can u tell me what's wrong with that? should i set some properties of that white rect.except set the explicit size directly.

    gufw > gnome-python > libgnomeui > libbonoboui > libgnome > gvfs
    etherape > libgnomeui > libbonoboui > libgnome > gvfs
    On the front page of archlinux.org you can do a package search and get this as a result: http://www.archlinux.org/packages/community/i686/gufw/
    Then follow the dependencies. You can also see dependencies with pacman -Qi gufw.
    For gvfs, it is a virtual filesystem. It doesn't use diskspace, only a tiny part of RAM, like sysfs/tmpfs/procfs.
    Here is more info: http://library.gnome.org/devel/gio/stable/ch01.html
    The two apps above use gnome libraries, which require gvfs for their filechooser so they can access all the mounted filesystems easier (easier for the app authors).
    Last edited by fphillips (2010-01-24 08:14:23)

  • Is there a way to allow text wrapping on the outside (parent) group label IN SSRS Bar chart?

    Hi,
    I am using SSRS 2012.  I have a series of charts that have multiple category groups.  When I preview the chart, everything looks great unless the category group label is too long.  In that case it just gets cut off.  I've tried allowing
    "wrapped text", changed interval values,font size for Y AXIS but that seems to only affect the inside (child) category group.  Is there a way to allow text wrapping on the outside (parent) group label?
    I am expecting AREA VIII  BUT it shows AR on y axis.
    I need to fix it asap.

    Hi Sukhjeet.BI,
    Actually, I can reproduced the issue in my local Reporting Services environment. If there are multiple category groups on the chart, the child category can be wrapped, but the parent category would be truncated. Based on my research, this behavior looks
    like by design. Usually, the best practice is to limiting label length and number of items, use a smaller size label font or enlarge the chart size to get the chart to display properly.
    If you have any concerns about this in Reporting Service, I would suggest you submitting a wish at
    https://connect.microsoft.com/SQLServer/Feedback.
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Hide the group section while previewing the report

    Post Author: sanjay_usa1
    CA Forum: General
    In CMC when i preview the reports which has a group category i can see the groups showing up in the left hand side by default everytime when i preview the reoport i can disable it in the upper toolbar but is there any way i can set up the group to hidden whenever i preview the report. So, that the groups are not shown in the left hand side whenever i preview report.
    Pls. help me out
    Pls. help me out i would really appreciate your help Regards, Sanjay

    Post Author: sanjay_usa1
    CA Forum: General
    Thanks a lot SKodidine, i tried it and published the report through CMC and while seeing the preview in CMC i didnt see the left panel for groups and i also didnt see the Groups tree hide and unhide button at the top of the report, we dont want the panel at the left but we want the button at the top which use to come with the Groups to hide and unhide the group tree panel at the left pls. guide me how can i do it.
    Your kind co-operation will be highly appreciated
    Thanks with best regards,
    Sanjay

  • Is there a way to show/hide a group of objects that will work in html5?

    I consider myself to have a fairly decent understanding of captivate and its functions but this recent issue has stumped me.
    I have a button with javascript attached to it that runs a typical if loop: (pseudo code to follow)
    if(variable = 1){
    show "group" and variable = 0; 
    } else{
    hide "group" and variable = 1; 
    Now normally, I would do this with single images, etc, and it would work fine.  You click the button (the image being unticked where it says "visible in output") and the image shows itself, then you click the button, and it hides.  Very standard stuff.
    My issue, is that captivate seems to let you name a group you make....but they have not given you any control of that group.
    Problem:
    I want a way to show and hide a group of objects by only clicking one button (when published to html5).
    I want to only have to reference the group and dont want to need to write a separate line of code for every single component that makes up that group (assuming the solution has to be coded).
    Is it even possible to control groups like this within captivate?
    Thanks!

    There is an adobe video that I think shows how to do exactly what you are asking.
    This is the video link:
    Lightbox-style Menu in Adobe Captivate 6 - YouTube
    At about 10min 50sec, it goes over creating a group from a number of single elements.
    At about 12min 30sec, it shows creating an action that turns the whole group on and another to turn the group off.
    When I did this myself, I used just one action that toggled the group on or off, but they show it as two actions. The idea is the same.
    I hope that helps. Apologies if I mis-understood the issue.

  • Error while getting the Direct parent group from IUser

    Dear all,
    I'm using KM API's to upload documents to KM through a Webdynpro Application.
    The uploading of the document is working correctly.  the permission setting to the newly uploaded document is done based on user group in which the user is a member.
    This is also working.
    While uploading, the  user gets a selection screen to choose the area.
    If the user is a member of All India that person will get option to select all branches and all areas under each branch.
    If the user is a member of any one branch, he can select only areas coming under his branch.
    Here the problem starts. (All India is the parent group for all branches,  under branch some areas are there.)
    User 1 is a member of All India
    User 2 is a member of Branch1
    If an All India user comes in we give the branch list in a dropdown list. Branch user should not get this dropdown. He's not supposed to upload documents for any other branch.
    I am checking the parent group of the user identify his Level. But even if the user is not a member of All India, I'm getting the dropdown to choose the branch.
    Please give me your valuable guidance to solve this.
    My code for getting the parent group is given below.
    public com.sapportals.portal.security.usermanagement.IGroup getParentGroup( com.sapportals.portal.security.usermanagement.IUser ep5User )
        //@@begin getParentGroup()
            String [] parentGrp=null;
            IGroup parentGroup=null;
            try
                 IGroupFactory groupFact=WPUMFactory.getGroupFactory();
                 /* Get all the User groups in which the user is a member */
                 String [] userGroup=ep5User.getDirectParentGroups();
                 for(int i=0;i<userGroup.length;i++)
                      IGroup userGrp=groupFact.getGroup(userGroup<i>);
                      if(userGrp.getId().startsWith("B00") || userGrp.getId().equalsIgnoreCase("ALL_INDIA"))
                           msgMngr.reportSuccess("ID of the group "+userGrp.getId());
                           parentGroup=userGrp;
                           break;     
            catch(UserManagementException e){
                 msgMngr.reportException("UserManagementException"+e,false);
            return parentGroup;
        //@@end
    Best Regards,
    Aparnna

    I found a solution. Not sure if its the correct one.
    Used the com.sap.security.api.IUser and used the below code to check if the user is a member in group
    IUser user=WDClientUser.getCurrentUser().getSAPUser();
                   com.sap.security.api.IGroup grp=UMFactory.getGroupFactory().getGroupByUniqueName("ALL_INDIA");
                   if(grp.isGroupMember(user.getUniqueID(),false))
    //code to be executed if the user is a member
    Best Regards
    Aparnna

  • Analytical Services failed to get user's parent group tree with Error

    Hi,
    We have a frequent errror during our weekly batch for an application.
    The context:
    - Essbase Administration Services we are using is version is 9.3.1.
    - 8 applications are calculated during the week-end. The scripts executed are exactly the same for the 8 applications.
    - For example let's say that 5 scripts are launched during the night in the batch for each application (script 1, script 2 ... script 5)
    - App1 and App2 are launched alone and before the 6 others applications as these applications database are 3 x bigger (App1 is calculated alone, then app2 is calculated alone, then app3 to app8 scripts are launched in the same time).
    The issue :
    - We don't see any issue for app3 to app8, the calculation are executed without any problem from script1 to script5.
    - But we have an error in App1 and App2 log when the bath execute script 4 and we see the following error in the server log **
    "Analytical Services failed to get user's parent group tree with Error".
    (** : we don't see any log for script 4 in the application log - it's like the server bypass script 4 to go directly from script 3 to script 5 )
    Nothing special is done in script 4 but just an aggregation of the Year dimension (using a @SUM(@RELATIVE(Year,0)) calculation.
    I think that there is may be a synchronization error with Shared Services but what is strange is that it's always for the same script 4 and the batch is launched at different time every week-end.
    Can the issue be linked to the size of the database of applications (8 Gb) and difficulties for the processor to executes aggregation in a large database volume ?

    Hi,
    According to your description, my understanding is that the error occurred when sending an email to the user in workflow.
    Did you delete the existing Connections before setting NetBiosDomainNamesEnabled?
    If not, I recommend to delete and recreate your AD connections, then set NetBiosDomainNamesEnabled to true.
    Or you can delete the original User Profile Service Application and create a new one, then set the NetBiosDomainNamesEnabled to true and start the User Profile Service Application
     synchronization.
    More reference:
    http://social.technet.microsoft.com/wiki/contents/articles/18060.sharepoint-20xx-what-if-the-domain-netbios-name-is-different-than-the-fqdn-of-the-domain-with-user-profile.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Problem in repetetion of the value of parent group element in each PDFpage

    I am using data template in BI PUB. I have table containing Region_Name , Sales_Rep_Name and amount. I need to show the region_name(parent group element) on the top(not in header) of the next and subsequent pages . under same region_name if sales_rep_name(child group element) is large enough not to fit in a single page, then same region_name should appear in the next page. But this name is not repeting in every page of the generated PDF.
    QUERY: SELECT region_name,sales_rep_name,SUM(amount) amount FROM edwods_bipub_test
    GROUP BY region_name,sales_rep_name
    ORDER BY region_name,sales_rep_name
    Data Structure for the above query: <dataStructure>
              <group name="g_region" dataType="varchar2" source="Q_weekly_summary_by_salesrep">
                   <element name="region_name" dataType="varchar2" value="REGION_NAME"/>
                   <group name="g_sales_rep" dataType="varchar2" source="Q_weekly_summary_by_salesrep">
                        <element name="sales_rep_name" dataType="varchar2" value="sales_rep_name"/>
                        <element name="amount" dataType="number" value="amount"/>
                   </group>
              </group>
         </dataStructure>
    Please help me at [email protected]

    create a formula column
    function Cf_clientaddressformula
    return varchar
    is
    clientaddress VarChar2(1000);
    begin
    Select DeCode(:Address1, Null, Null, :Address1)||
    DeCode(:AddressN, Null, Null, Chr(10)||:AddressN)||
    DeCode(:City, Null, Null, Chr(10)||:City)||
    DeCode(:State, Null, Null, Chr(10)||:State)
    DeCode(:Country, Null, Null, Chr(10)||:Country)
    DeCode(:PostalCode, Null, Null, Chr(10)||:PostalCode)
    Into ClientAddress
    From Dual;
    ClientAddress := LTrim(RTrim(ClientAddress,Chr(10)),Chr(10));
    return(ClientAddress);
    End;
    assign this cf to the address field in your report and set that field "Vertical Elasticity" to "Variable"
    Hope this will solve your problem.
    Sumanth

  • Hide empty groups

    Hi, everybody.
    Is there a way to hide empty groups in a stacked chart bar view as in a pie chart view?
    I want to avoid something like this
    Layer 1, 0, 0%
    Layer 2, 0, 0%
    Layer 3, 5, 100%
    Layer 4, 0, 0%
    Layer 5, 0, 0%
    But i don't found an option to hide that values.
    Thanks
    Luciano

    http://www.ralphjohns.co.uk/page5.html#_addons
    Some of these are from iChat 2 onwards.
    Some of those are now features in iChat.
    ChatFX for Instance is now Backdrops and Effects (Although some of those are restricted to Intels).
    Conference Recorder in also a iChat item now as are Animated icons
    iChat 4 can Auto accept.
    Go to the iChat Preferences > Alerts
    Pick the action (Receive Invite) and then choose the AppleScript item and then the Auto Accept.
    iChat 5 has an "In new Chat window Show (Last Chat)" The bit in the brackets is a drop down and this is found in the iChat Preferences > Messages.
    8:07 PM Tuesday; December 22, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Query to find the parent group name

    what is/are the table name that i should use to find the parent name of the job?
    thank you,
    warren

    Hi Warren,
    The parent group name (dbo.jobmst.jobmst_prntname) can be found within jobmst table.
    For example, the below query will return parent name of a specified job:
    SELECT dbo.jobmst.jobmst_prntname
    FROM dbo.jobmst
    WHERE dbo.jobmst.jobmst_name = 'Enter name of job here'
    BR,
    Derrick Au

  • After restoring contacts from time machine, all groups are empty

    I had to restore a backup of my address book folder from time machine. Library/Application Support/Address Book, I also removed deleted the com.apple.addressbook.plist files.  When I open address book, all the contacts and group names show, but the groups are now empty when I click on them.  Any thoughts?

    Quit Contacts or Address Book if it’s running. If you use iCloud, uncheck the box marked Contacts in the iCloud preference pane.
    Triple-click the text on the line below to select it, then copy it to the Clipboard (command-C):
    ~/Library/Application Support/AddressBook/Metadata
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, paste into the box that opens (command-V), and press return.
    A Finder window will open with a folder selected. Move the selected folder to the Desktop, leaving the window open for now.
    Relaunch the application and test. If there’s no improvement, quit and put back the item you moved, overwriting the newer one that may have been created in its place. Otherwise, delete the item.

  • Google Contacts API 2.0: Add option to select which groups are synced

    This has been a requested issue for quite some time now:
    *1) Add an option to control what Google Contact groups are synced in ITunes*
    Currently, if you sync to Google Contacts, iTunes will pull in EVERY contact from your Google Contact list. That includes those contacts filed under "Suggested Contacts", which lists contacts you email on a frequent basis. The workaround for this is to delete your Suggested contacts every time you sync your iPhone, or risk the issue of having hundreds of new junk contacts in your iPhone.
    I understand that there was an issue in the Google API before, the issue being that there was no way to distinguish between which group the contacts were coming from. That issue is now gone, it was corrected in the update of the Google API to 2.0 on December 12th. Now, when syncing, the ability to distinguish which groups the contacts exist in is there. Below is the documentation of those changes:
    http://code.google.com/apis/contacts/docs/2.0/developers_guide.html
    With Google's update, the iTunes implementation of syncing Google Contacts can allow the selection of only specific groups to sync.
    As said before, this is basic functionality that has been requested by many for a long time (search Google if you don't believe me), and I hope and pray that the wonderful iTunes/iPhone gods will bestow upon us the ability to select Google Contact groups in the near future. Are there any plans to add this functionality? If so, when might we expect an update?

    Hello Blindbug.
    I do apologize. But this is a user to user community. And no one here knows when or if certain features or products will be released unless there has already been a public announcement by that company released for everyone to view and read.
    If I can be so kind as to refer you to iPhone feedback below. And you may wish to also spend some time going to google's site and submitting feedback as well.
    http://www.apple.com/feedback/iphone.html

Maybe you are looking for

  • How to get first emp for each dept?

    Hi, I need to do a query to pick up one employee (the first one based on ename or empno)from each department, but I don't want to use min function (for some reason it didn't work on my real date), rather I like to use something like this: The problem

  • SQL LOADER / INFILE filename as variable in .ctl file

    I stumbled over several threads in the OTN-forums regarding this problem, but neither was it finaly solved nor did I find a FAQ that answered my question. Soooo: We get several datafiles from several sources and process them via SQL Loader and store

  • How to display header detail in more than one page of smartforms

    Hi abapers, I want to print the  smartforms. My header window should conatin only one belnr (accounting number ) in each page.and its detail in main window. how will i do this. Regards, Priya

  • Satellite Pro M10 - start up problems

    Hi I have a Satellite Pro M10, only 2 years old, but has big start up problems at mement. The message that comes up when turning it on is: "Intel (R) Boot Agent FE v4.1.09 Copyright (C) 1997-2002, Intel Corporation PXE-E61: Media test failure, check

  • Why am I getting an error when trying to export a jpeg at 300 dpi?

    I am trying to export a 18" x 24" illustrator file to a jpg at RGB 72dpi and CMYK 300 dpi.  72, no problem but when I try to export at 300 I get an error message. Any ideas why this is happening?