SSRS Matrix not showing all the entry for a Column Groups

I created a Matrix in my SSRS report and for some reason if the COLUMN GROUP has more than one
entry it only shows the first one and not the second or consequent entries.
I opened a question in SO and here is the link:
http://stackoverflow.com/questions/23248421/how-to-add-column-in-a-ssrs-table-based-on-criteria
All help is appreciated.

Hi SiKni8,
According to your description, you have a matrix report. If a user has more than one start date and end date, you want to put all those start dates and end dates into one single row for this user. Right?
In Reporting Service, for all data fields textbox appearing at intersection of rows and columns, the matrix will use Sum aggregation function by default. If the data can’t be calculated by aggregation function, it will return the first one of records. This
is the reason why you only get the first start date and end date for each user. In your scenario, it is impossible to append more columns at the end of the matrix without setting column group. And we can never append columns dynamically based on the numbers
of the records. So for your requirement, we find a workaround which we think is the most related to the answer you want. We use custom code to get both StartDate and EndDate, then return them as string. After that we append those strings and put the whole
string into a cell. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
Put the custom code below into your report:
Dim Num As String = ""
Dim tempstr As String = ""
Function AggregateString(Title as String, StartDate as String, EndDate as String) 
If Title = Num Then
   tempstr = tempstr + "(" +StartDate+" , "+EndDate+")  "
Else
  tempstr=""
  Num = Title
  tempstr =tempstr+"("+StartDate+" , "+EndDate+")  "
End If 
Return tempStr 
End Function
In our sample report, we created a matrix based on your description. It looks like below:
In textbox next to [Title], put the expression below into it:
=runningvalue(Code.AggregateString(Fields!Title.Value,Fields!StartDate.Value,Fields!EndDate.Value),Last,"Title")
Ps: In our report, we set the type of date as string when creating table and dataset. If your date type is different, use Cstr() function and convert it into string.
Save and preview. The result looks like below:
Reference:
Matrices (Report Builder and SSRS)
RunningValue Function (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • Z Database view is not showing all the entries?

    Hello
    Last year I have created a Z table, say, its name is Z_TABL_1, its working fine, say, there is around 1000 entries in PRD, well
    Last week I have created another 2nd Z table, its name is Z_TABLE_2, now it has 50 entries in PRD
    In both tables the key field os the same (VISITOR_NUMBER) and there is only one key field in both tables, its the same
    When creating the 2nd table I forgot to specify the CHECK table relationship in 2nd table refering 1st table, I mean, dependent table is 2nd whereas reference is 1st table
    Now, I created a database view, say, my_db_view on these 2 tables.
    When I opened this my_db_view in SE16, I expected 1000 (this 1st table count) entries, but am seeing just 50 (the 2nd table has only 50 entries) entries!!
    Pls. let me know how can I view all the 1000 entries in SE16 for my_db_view?
    Thank you

    Hi,
    in your DB view tables are joined and database views implement an inner join (you can check here: http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ecab446011d189700000e8322d00/content.htm), that's why the system extracts only 50 records.
    It's not possible to have all the 1000 records using a database view.
    Marco

  • My Mac's Built in iSight is not showing all the options for the camera

    On Flash bashed chat rooms such as Stickam and Tinychat, my camera doesn't respond but when I right click>settings >Camera the drop down box only shows one option (Built-in iSight) when it usually shows three (Built in iSight, USB Class Video and Something else that slips my mind right now.)
    Screen shot: http://i983.photobucket.com/albums/ae318/KaitheHeartless/Picture2.png
    Can anyone tell me how to fix this?
    Thanks for the help!
    Message was edited by: HaylieFoxe
    null

    Welcome to Discussions, HaylieFoxe
    HaylieFoxe wrote:
    On Flash bashed chat rooms such as Stickam and Tinychat, my camera doesn't respond but when I right click>settings >Camera the drop down box only shows one option (Built-in iSight) when it usually shows three (Built in iSight, USB Class Video and Something else that slips my mind right now.)
    Screen shot: http://i983.photobucket.com/albums/ae318/KaitheHeartless/Picture2.png
    Can anyone tell me how to fix this?
    Thanks for the help! ...
    Try the suggestions offered in this recent topic on the same subject:
      http://discussions.apple.com/message.jspa?messageID=12717402
    EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.6); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.6)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1

  • HT1386 why my contacts does not show all the numbers for a contact

    i want to synch my contacts from Outlook to my Iphone4s but only some of the numbers gets synched please help

    Thanks for your reply. I have only had my new Macbook for a few weeks and do not have DropBox or GoogleDrive (or anything else) on it. It is a very weird problem.

  • BI publisher report is not showing all the data

    Hi All,
    I have created a report using BI Publisher in R12. The report is not showing all the records.
    I have checked the result XML it is also not having all the data. My query returns 846 rows but my report only has 662 rows.
    what might be the issue.please give me some idea to resolve this issue.
    Thanks in advance.
    Regards,
    P.Kalidoss

    Hi Arun,
    In the following code: public SelectItem[] getAllPrinters() {
    if (allPrinters == null) {           // allPrinters is not defined. what type of object it is
    PrintService[] printers = PrintServiceLookup.lookupPrintServices(null, null);
    allPrinters = new SelectItem[printers.length];
    for (int i = 0; i < printers.length; i++) {
    SelectItem printer =
    new SelectItem(printers.getName(), printers[i].getName());
    allPrinters[i] = printer;
    return allPrinters;;;
    Variable allPrinters is not defined. what type of object it is?
    And also the same variable is referenced here <af:selectOneChoice label="Available Printers" partialTriggers="cb1"
    value="#{pageFlowScope.applicationPrinterBean.selectedPrinter}"
    id="soc1"
    autoSubmit="true">
    <f:selectItems value="#{pageFlowScope.applicationPrinterBean.allPrinters}" id="si1"/>
    </af:selectOneChoice>.
    Thanks.

  • In solution manager system not showing all the system in SLD

    Dear Gurus,
    During the installation of solution manger sysyem i selected as a Central SLD as solution manager
    Later installed ECC 6.0 and EP systems selected SLD as solution manager system during the instllation.
    If i login in to http://hostname:50000/sld (solution manger system) and the screen also not showing all the options also. some options missing in the tab. Wat I need to do to see all the options clearly.
    It is not showing all the systems if i check in EP and ECC for SLDCHECK it is not givng any errror.
    But if i login into solution manger not  able to see all the system in SLD.
    Regards

    Thanks for reply
    it is not showing all the systems

  • ALV not showing all the rows! Please help!

    Hi Experts,
         I have webdynpro ALV report and I am using SALV_WD_TABLE as the reusable component. In component controller's WDDOINIT I have written the code for pulling teh data from R/3 table and binding it to ALV table.
    In the view's WDDOMODIFYVIEW event I have written the following code to get subtotal and grand total of Qty column based on product column.
          I have coded like this:
          lr_field_settings ?= l_value.
    lr_field = lr_field_settings->get_field( 'PRODUCT' ).
    lr_field->if_salv_wd_sort~set_group_aggregation_allowed( ABAP_TRUE ).
    lr_field->if_salv_wd_sort~create_sort_rule( ).
    l_sortrule = lr_field->if_salv_wd_sort~GET_SORT_RULE(  ).
    l_sortrule->set_sort_order( if_salv_wd_c_sort=>sort_order_ascending ).
    l_sortrule->set_group_aggregation( ABAP_TRUE ).
    *...Aggregate Field PRODUCT
    lr_field = lr_field_settings->get_field( 'QTY' ).
    lr_field->if_salv_wd_aggr~create_aggr_rule( ).
    lr_aggr_rule = lr_field->if_salv_wd_aggr~get_aggr_rule(  ).
    lr_aggr_rule->set_aggregation_type( if_salv_wd_c_aggregation=>aggrtype_total ).
    It is working now but my ALV table is not showing all the rows. I have 6 products and it is showing from product 2. But it is calculating grand total and subtotal correctly. I am not able to see the first product row and subtotal for that. Even if I click on the ^ icon in the ALV table below it is not showing all the rows.
    What could be the problem?
    Please help
    Thanks
    Gopal

    did you somehow manage to set the "first visible row" property on table object
    to 2.   Only thing I can think of that could cause this effect.
    Cheers
    Phil

  • Service monitoring is not showing all the services when i create a service monitor under Management pack templates.

    Hi All,
    I am using SCOM 2007 R2 CU4 in my environment. I want to do a service monitoring on specific agents. When i try creating this service monitor which comes under the Management pack template  when i select the service which i want to monitor it does not
    show all the services in the drop down.
    For example - I have Windows audio service which is present on the machine, But it is not showing in the service list. 
    So from the services stating from "W" i see only 5 in SCOM and in services.msc in the Agent i see more than 5.
    Below is the screen shot.
    Can any one please help.
    Gautam.75801

    Hi Yan Li,
    So based on your above suggestion, If the services are already managed  / monitored by a specific
    management pack those services will not appear here in the Wizard while creating this type of a Management pack object alert right ?
    If that is the case why does not the same reflect here in the operations console in the Services monitor
    TAB ?
    Gautam.75801

  • Lightroom not showing all photos avail for import

    About a week ago, I tried to import some new photos into LR 3 (3.4.1 to be exact), and the import dialogue does not show all the photos that should be available for import.
    The files are on my hard drive and there are approximately 200 photos in the file folder. When I open LR's import dialogue to import the photos (after navigating to the proper location to import from of course), it shows me 17 of the photos in the file folder! I selected "all" instead of "new" to see if that would make a difference and it did not. I made sure I did not have "do not import suspected duplicates" checked, even closed LR and rebooted my computer.... that didn't work.
    I tried creating a new catalog to see if that would fix the issue, and it did not.
    I'm not sure what else to try, or if there is a known fix out there (having a heck of a time finding one in my internet search!)
    Any ideas/suggestions?
    Thanks!
    -KBP

    Okay, so for giggles I tried checking in the Bridge to see if that changed anything... and it only showed the few files too. So I decided to "select all" and noticed at the bottom left that it listed the balance of my photos as "hidden." I have no idea how my files got hidden, or why it was only some and not others... but at least it's all fixed now and I can get back to what I need to do in LR!

  • Apple mail not showing all the messages?

    In Apple mail, for my icloud account, I have some mailboxes which show the wrong number of messages, it shows too few.
    As an example, a mailbox contains 150 messages, but apple mail reports there are only 146.
    I rebuilt the mailbox and let apple mail do its thing. In the activity window I can see there are 150 messages. Yet, once apple mail has finished rebuilding the mailbox, it still tells me there are 146 messages. What's going wrong? Why would apple mail not show all the messages while in the activity window it clearly shows it knows there are 150?

    Solved!
    This was too weird to be real. Apple mail does not show messages it believes to be duplicates, and buy, does it make big mistakes in deciding what are duplicate messages and what not! Some of my mailboxes had over 100 "duplicates" not showing according to apple mail.
    I found a solution thanks to this topic:
    https://discussions.apple.com/message/18265121#18265121
    defaults delete com.apple.mail AlwaysShowDuplicates
    does yield an error in 10.8.2 ( Domain (com.apple.mail) not found. Defaults have not been changed. )
    defaults write com.apple.mail AlwaysShowDuplicates -bool true
    Does work brilliantly though!

  • Vertical scrollbar not showing all the records when I scroll down.

    Vertical scrollbar not showing all the records when I scroll down.
    Using Oracle forms 10g , operating system windows
    I have two fields with number of items dispayed = 15.
    I have a vertical scroll bar with them. There are 34 records in the table but the scrollbar only shows 15 records.
    Here are the properties for block / scrollbar.
    WORK_CATEGORY
    - Subclass Information                           
    - Comments                                       
    * Navigation Style                                Same Record
    - Previous Navigation Data Block                 
    - Next Navigation Data Block                     
    - Current Record Visual Attribute Group          
    - Query Array Size                                0
    - Number of Records Buffered                      0
    * Number of Records Displayed                     60
    * Query All Records                               No
    - Record Orientation                              Vertical
    * Single Record                                   No
    - Database Data Block                             Yes
    - Enforce Primary Key                             No
    - Query Allowed                                   Yes
    - Query Data Source Type                          Table
    * Query Data Source Name                          WORK_CATEGORY
    * Query Data Source Columns                      
    * Column Name                                   JOB_TYPE
    * Column Type                                   VARCHAR2
    - Column Type Name                             
    - Parent Column                                
    * Length                                        30
    * Precision                                     0
    * Scale                                         0
    * Mandatory                                     Yes
    * Column Name                                   WORK_CATEGORY
    * Column Type                                   VARCHAR2
    - Column Type Name                             
    - Parent Column                                
    * Length                                        30
    * Precision                                     0
    * Scale                                         0
    * Mandatory                                     Yes
    - Query Data Source Arguments                    
    - Alias                                          
    - Include REF Item                                No
    * WHERE Clause                                   
    * ORDER BY Clause                                 job_type
    - Optimizer Hint                                 
    - Insert Allowed                                  Yes
    - Update Allowed                                  Yes
    - Locking Mode                                    Automatic
    - Delete Allowed                                  Yes
    - Key Mode                                        Automatic
    - Update Changed Columns Only                     No
    - Enforce Column Security                         No
    - Maximum Query Time                              0
    * Maximum Records Fetched                         0
    - DML Data Target Type                            Table
    - DML Data Target Name                           
    - Insert Procedure Name                          
    - Insert Procedure Result Set Columns            
    - Insert Procedure Arguments                     
    - Update Procedure Name                          
    - Update Procedure Result Set Columns            
    - Update Procedure Arguments                     
       Don't know where am I going wrong. I'll really appreciate if you can help me in this.
    Thanks.
    Edited by: 831050 on Sep 14, 2011 8:05 AM

    One of the items is a list item.. here are it's properties:
    * Name                                          JOB_TYPE
    * Item Type                                     List Item
    - Subclass Information                         
    - Comments                                     
    - Help Book Topic                              
    - Enabled                                       Yes
    * Elements in List                             
    * Label                                      
    * List Item Value                             LIST20
    * List Style                                    Combo Box
    - Mapping of Other Values                      
    - Implementation Class                         
    - Case Restriction                              Mixed
    - Popup Menu                                   
    - Keyboard Navigable                            Yes
    - Mouse Navigate                                Yes
    - Previous Navigation Item                     
    - Next Navigation Item                         
    - Data Type                                     Char
    - Data Length Semantics                         Null
    - Maximum Length                                30
    - Initial Value                                
    * Required                                      Yes
    * Copy Value from Item                         
    - Synchronize with Item                        
    - Calculation Mode                              None
    - Formula                                      
    - Summary Function                              None
    - Summarized Block                             
    - Summarized Item                              
    - Current Record Visual Attribute Group        
    - Distance Between Records                      0
    * Number of Items Displayed                     15
    - Database Item                                 Yes
    * Column Name                                   JOB_TYPE
    - Primary Key                                   No
    - Query Only                                    No
    - Query Allowed                                 Yes
    - Insert Allowed                                Yes
    - Update Allowed                                Yes
    - Update Only if NULL                           No
    - Visible                                       Yes
    * Canvas                                        CANVAS2
    - Tab Page                                     
    * X Position                                    47
    * Y Position                                    137
    * Width                                         187
    * Height                                        18
    - Visual Attribute Group                        DEFAULT
    - Prompt Visual Attribute Group                 DEFAULT
    - Foreground Color                             
    * Background Color                              white
    - Fill Pattern                                 
    - Font                                         
    * Font Name                                     Tahoma
    * Font Size                                     10
    * Font Weight                                   Demilight
    * Font Style                                    Plain
    * Font Spacing                                  Normal
    * Prompt                                        Job Type
    - Prompt Display Style                          First Record
    * Prompt Justification                          Start
    * Prompt Attachment Edge                        Top
    - Prompt Alignment                              Start
    * Prompt Attachment Offset                      10
    * Prompt Alignment Offset                       0
    - Prompt Reading Order                          Default
    - Prompt Foreground Color                      
    - Prompt Font                                  
    * Prompt Font Name                              Tahoma
    * Prompt Font Size                              10
    * Prompt Font Weight                            Bold
    * Prompt Font Style                             Plain
    * Prompt Font Spacing                           Normal
    - Hint                                         
    - Display Hint Automatically                    No
    - Tooltip                                      
    - Tooltip Visual Attribute Group               
    - Direction                                     Default
    - Initial Keyboard State                        Default
    - Keyboard State                                Any
        

  • Process Chain got struck and not showing all the variants in the log view

    Hi,
    We have some process chains which are running daily.The problem here is that one of the process chains got struck at some point
    and it is not showing all the variants in the log view but able to see in planning view.
    Could any one please let me know why this is occuring.

    Hi Ramanjaneyulu,
    Thanks for the reply.
    As you said,i clicked on the 'display message' but it is not showing any errors.It is showing
    that the process completed successfully.
    Thanks.

  • BP interaction history does not show all the activities in portal

    Hi Experts,
    We have a problem in application CRMM_ACCOUNT when we go to BP interaction history does not show all the activities in portal as it is thr in activities screen.
    Regards,
    Mark

    Hi Glenn Michaels,
    Thanks for your response , If I look at the activities tab there were more activities than on the interaction history tab .
    In allowed channels for transaction type we have 3 channels.
    Can you guide me what to do next?
    Regards,
    Mark

  • New outlook install not showing all email histories for some users

    Hello,
    I recently installed outlook 2013 on a windows 8 machine connected to exchange. I noticed it is not showing all the email histories for a particular user.  Is there an index that needs to be rebuilt or something?  Some users it shows a
    bunch emails for others it only shows one or two.  Thanks in advance.  

    Hi,
    Do you mean only one particular user couldn't view all messages from Outlook?
    From this sentence "Some users it shows a bunch emails for others it only shows one or two.", it seems that this issue affect some users, not only one.
    If only one user is affected by this problem, you can follow the steps below to check result.
    1. Please check if it displays all mails in OWA.
    2. And please switch between Outlook cached mode and online mode to check result.
    If some users are affected, please check database index status.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • HT1351 My ipod Classic is not showing all the music from iCloud.

    My ipod Classic is not showing all the music from iCloud. I have "show music" enabled.

    Glad 7.7.1 worked for you, I updated itunes on my macbook, and every time i try to sync the music to my ipod classic, it goes for 23 songs and then it freezes and I get "Cannot read or write to this disk", and it ejects it. I tried uninstalling itunes, reinstalling an earlier version (7.6.2) same problem, plus a new issue with itunes. (It was a clean uninstall, btw, I got everything cleaned out, I think, lol). Video's transfer fine. And no good way to get ahold of apple. That's great. If I have no music on my ipod, it's useless. Think they'll give me my money back? (lol)

Maybe you are looking for