Grouping by a concatenated field?

I have a report with 1 group and 3 additional sort fields. What I'd LIKE to do is have a single field that I add all the sort fields into, to create a single field, and then group by that. So that any time any of the elements of that field change, it triggers the group change. For example:
Group on: FIELD1
Sort on: FIELD2, FIELD3, FIELD4
Goal:
Build a single string, MyStr := FIELD1 + FIELD2 + FIELD3 + FIELD4
Remove all groups and sorts, then group on that formula field.
Can that be done, and if so, can someone point me in the right direction?
Thanks a million! You guys are really helping me get this project off the ground.
(CR2010)
ETA: Though this sounds ridiculous, this particular report would benefit greatly from this methodology. Long story (sigh).

On another thread I posted this morning, I asked for assistance with creating a string in which multiple Hard Drive capacities were placed (i.e. "500G, 1T, 2T", etc) and only displayed when the group changed. While that worked well, there are SIX total group/sort fields. I would really like to combine all those into a single string, group on that, and insert the formula when the group changes. It seems easier than trying to manage so many fields. If I want to keep them individual, I have to change them all to Groups, because when any ONE of those fields changes (and yes, the are in order of frequency-of-change), I'd need to display a line of data that would include the capacity string.
The detail section would be entirely suppressed.
It just seems that it would be easier to have a single group to manage, rather than a group plus 4 or more sort fields.

Similar Messages

  • Is it possible to order a group by a different field

    I have a report that groups everything perfectly by Type.  The issue I am having is trying to order the values returned in each grouping by a different field in the returned data, it is a number.
    Is it possible to sort a group based on a field in the returned data, without having to create another group?

    Never mind, just made the the second field a sub group

  • DAX - Grouping by 2 different fields in 1

    Hi,
    Imagine a table that has persons. Persons have a set of attributes like Father and Mother profession. In each of the fields, the contents are on the same context, you can have a person that has a father or mother that is a doctor, engineer or teacher.
    Imagine this set of data now:
    Name: Michael - Father Profession: Doctor -
    Mother Profession: Teacher
    Name: John - Father Profession: engineer - Mother Profession: Teacher
    Name: Sarah - Father Profession: Doctor - Mother Profession: engineer 
    Name: Connor - Father Profession: engineer - Mother Profession: Teacher
    What I want is to group the 2 profession fields to count the number of people that has a father /mother of that profession, so In the end the result has to be like this (3 fields) -
    using DAX expressions
    Doctor: 2 on Father  0 on Mother
    Engineer: 2 on father 1 on mother
    Teacher: 0 on father 3 on mother
    Thank you

    Hi Pedro,
    According to your description, you want to group number of fathers and mothers on Profession based on your source data. Right?
    In Analysis Services Tabular, there's no function to pivot the result set in DAX. For your requirement, the most effective workaround is calculate the result on T-SQL query level. Then return retrieve it into Tabular. Please refer to the query below:
    create table #temp1(
    name nvarchar(50),
    parent nvarchar(50),
    profession nvarchar(50))
    insert into #temp1 values
    ('Mike','Father','Doctor'),
    ('Mike','Mother','Teacher'),
    ('John','Father','Engineer'),
    ('John','Mother','Teacher'),
    ('Sara','Father','Doctor'),
    ('Sara','Mother','Engineer'),
    ('Connor','Father','Engineer'),
    ('Connor','Mother','Teacher')
    WITH Cte AS(
    select profession,parent,count(1) count from #temp1 group by profession,parent
    SELECT profession,isnull([father],0) father,isnull([mother],0) mother FROM Cte
    pivot
    sum(count) for parent in([father],[mother])
    ) as pvt
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Group managers and Contributors fields are randomly cleared out in Terms Store Management Tool

    Is there any explanation or how to solve this problem?
    Group managers and Contributors fields are randomly cleared out in Terms Store Management Tool in SharePoint 2010.
    Any ideas? Thanks!

    Hi arevsun, 
    For this issue, I'm trying to involve someone familiar with this topic to further
    look at it. 
    Thanks,
    Eric Tao
    TechNet Community Support

  • Transportation Group and Shipping condition fields in Route determination

    Hello Guys,
    Please, I heard that if I leave Transportation Group and Shipping conditions field empty Route determination would consider whatever value I put in Material/Custumer Master.
    But the determination just happen if I put the exact value in either the determination and the Material Master for Transportation Group field for example.
    Have you ever determined Routes leaving the fields empty?
    Thank you,
    Regards,

    Hi,
    Those fields Transportation Group and Shipping conditions available in Route Determination are essential to trigger the correct route in Sales Order level.
    If blank the available routes need to be picked manually at Sales Order level.
    Kindly check .
    Regards,
    SRK

  • Speeding up a query on a concatenated field.

    Hi,
    I have a view with a concatenated field that basically comes down on this:
    ALTER VIEW [dbo].[_FO_QP_Items_4_0] AS
    SELECT
    Col A ,Col B --etc
    ,CONVERT(nvarchar(36), sysguid) +'|'+crdnr AS [LevCode]
    FROM table A
    As you see I am concatenating 2 fields together to get a unique [LevCode] (concatenating Itemcode + Supplier code)
    If I query that view like this, it runs rather slow on a 500.000+ rows table:
    SELECT *
    FROM [dbo].[_FO_QP_Items_4_0]
    WHERE [LevCode] = 'DF007704-38EF-4389-8544-E70CC32404D5| 60102'
    ORDER BY Col A
    Unfortunately I am not able to add an extra column to the table and concatenate the fields there. 
    Is there a way to speed up the query (or view).
    Thanks for helping me out here.

    Index view has high overhead. It has to be really justified.
    BOL: "Indexed views work best when the underlying data is infrequently updated. The maintenance of an indexed view can be greater than the cost of maintaining a table index. If the underlying data is updated frequently, the cost of maintaining the indexed
    view data may outweigh the performance benefits of using the indexed view. If the underlying data is updated periodically in batches but treated primarily as read-only between updates, consider dropping any indexed views before updating, and rebuilding them
    afterward. Doing this may improve performance of the updates."
    Reference:
    https://technet.microsoft.com/en-us/library/ms187864%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Cast 3 Concatenated Fields as Date

    Hi,
    I have the following requirement. On the contact page there is a drop down field named Starting month of months (Jan to Dec). On the report i need to show Starting Date column, which is a concatenated field of 01 as date, Value in the Starting month field and current year.
    For Ex: If user select Feb , on the report in Starting Date column it should display 01-Feb-2011. This can be achieved using combination of concat functions. But i also need another column to show if starting date is passed or not based on Starting Date coulumn and current date. To do that i need to cast the concatenated field (i.e Starting month) to Date.
    But when i try to cast starting date as DATE, i get a error message. The sample cast function i have used is "CAST(REPLACE(CAST(YEAR(CURRENT_DATE) AS CHARACTER) ||'-'|| CASE WHEN Contact.PICK_10='Jan' THEN '01' ELSE Contact.PICK_10 END || '-' || '01', ' ', '') AS DATE)" .
    Does anyone knows how to cast strings as Date? Any workarounds on this issue is appreciated.
    Thanks in advance.

    Mark, you are not alone.
    We also encountered this error using XI 3.0.  We received the "Driver is not capable" error message when including date dimensions from a universe built on a BEx query.  Looking at the universe, the date dimensions themselves were date fields, but all the date keys were listed as characters.
    Our fix:
    Replace all the date dimensions with the date keys listed below the dimensions.  This is a little tricky because when you add the key into your webi query, it automatically adds the dimension.  You have to manually remove the dimensions from the webi query after adding the key, and your report should run without the "Driver not capable" error message.
    This is a serious bug, because now we have to train users building the webi queries to delete the date dimension.  We cannot hide the dimension in the universe because it will also hide the key.
    I guess another fix could be creating a new Dimension in the universe, and copying the properties from the key field into the new dimension...but if you have many dates, it's a big pain.
    Hope this helps,
    -Lee

  • Using Group BY with text fields

    Hi,
    Is there any way around the problem of not being able to
    GROUP BY a text field???
    I have tried using the CAST (name AS VARCHAR(8000)) but it
    doesn't return the full value of the field...... I am getting about
    250 characters returned....
    Is there any way around this? ,

    I am assuming MS SQL Server. According to SQL Server Books
    Online:
    Note: Columns of type text, ntext, and image cannot be used in
    group_by_expression.
    For GROUP BY clauses that do not contain CUBE or ROLLUP, the
    number of group_by_expression items is limited by the GROUP BY
    column sizes, the aggregated columns, and the aggregate values
    involved in the query. This limit originates from the limit of
    8,060 bytes on the intermediate work table that is needed to
    hold intermediate query results. A maximum of 10 grouping
    expressions is permitted when CUBE or ROLLUP is specified.
    Phil

  • How to get the screen groups for the screen field which are on selectionscn

    hiiii Experts,
                   How to know the screen groups for the screen field which are on selection screen.
    Thanks and regards,
    kasyap

         NAME                                             PNPABKRS-LOW
            GROUP1                                             SEL
            GROUP2                                             DBS
            GROUP3                                             LOW
            GROUP4                                             180
    to get this use this:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name CS 'ABKRS'.
          BREAK-POINT.
        endif.
      ENDLOOP.

  • Derivation procedure where question group has no enterable fields

    I have a question group that has only 2 fields -> one field is derived and the field other is a non-enterable field with a default value. The field I'm trying to derive is adding the scores from a repeating question group within the same DCM. The problem is that the question group with the derived field needs to be the primary reference (it will not generate otherwise); however, since there are no enterable fields within this question group it is not recognizing any data as being entered and therefore will never derive. Is there a way to get around this? I hope I've explained my situation clearly. Thanks!

    I have a question group that has only 2 fields -> one field is derived and the field other is a non-enterable field with a default value. The field I'm trying to derive is adding the scores from a repeating question group within the same DCM. The problem is that the question group with the derived field needs to be the primary reference (it will not generate otherwise); however, since there are no enterable fields within this question group it is not recognizing any data as being entered and therefore will never derive. Is there a way to get around this? I hope I've explained my situation clearly. Thanks!

  • How to create a group with multiple data fields

    Post Author: RichS
    CA Forum: Formula
    Using CR XI.  Using CSV input from ODBC text driver.  No problems here.
    There are 3 fields that I want the same group by action.  Is this possible?) 
    If any one of these 3 fields change I want some header information and column fieldnames to display.  The header information I only want displayed on the first page (on the change) and the column fieldnames to display on every page.  I have played around with things like "InRepeatedGroupHeader" and "report group header on each page".  I am not getting all the results that I am looking for though.
    I want report to look like:
    Page header stuff  (to display on every page)  This data consists of some fields that will have static data and will display on every page.  And it consists of 3 non-static fields that I want to group on. 
    Group header stuff that I only want displayed on the first page on a change from one of the 3 fields mentioned above.
    Column headings that I want displayed on every page.
    Details data
    Group footer stuff (details not important for this)
    I get the expected output (column headings displayed on every page, and group header stuff display on the first page on each group change) with one group field.  But I want the group change to happen for all 3 fields.
    It seems simple but I can't find a way to create a "group" so if "field1 or field2 or field3" change, I get the same "group by" action.  I just need to know how to get the expected action.
    I expect that I might have some terms mixed up and/or some important information that would aide you in helping me.  If that is the case please re-post and I will add any missing or mis-stated information.
    Thanks,

    Post Author: V361
    CA Forum: Formula
    I am slightly confused, but perhaps you can create a formula
    Then group on the formula.  If this is not what you want, could you post some sample data, with the desired results.

  • Concatenated field required in the DME format

    Dear All,
    I am using DMEE tree for the format required by the bank. In the format I need to change the field value after concatenating it.
    For Eg.
    If the Payment Method of the transaction is 'N' then the value in the output file will be 'N06'.
    For this first I want to know which is the field available in the DME tree for the payment method.
    Second how i can implement the concatenation of the field.
    Thanks & Regards
    Edited by: Vinda bailwar on May 3, 2011 5:48 AM

    Hi,
    If you want to concatenate than you need to create atoms for passing value.
    Please follow the below steps:-
    For Element
    At attributes tab select: mapping procedure as Own Mapping(atoms) and Atom handling: 01
    For payment method atom
    At attributes tab select : mapping procedure as Structure Field.
    At Source tab provide
    Structure: FPAYH
    Field name:RZAWE
    For Constant '06' atom
    At attributes tab select: mapping procedure as Constant.
    At Source tab provide: 06
    Regards,
    Anand Raichura

  • ORACLE Select and group by excluding one field

    Dear community,
    I have a very simple query (on Oracle 11g) to select 3 fields:
    select field1, field2, field3, count(*) from table
    where...
    group by field1, field2, field3
    having count(*) > 10;
    Now, what I need, is exclude "field3" from the "group by" since I only need field 1 and 2 to be grouped, but I also need field3 in the output. As far I know, all the fields in the select must be reported also in "group by", so how can I handle that?
    Thanks
    Lucas

    Welcome to the forum!
    Whenever you post please provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION). And when you post code use code tags, \ on the line before and after the code to preserve formatting. See the FAQ for other syntax and highlighting options.
    {quote}
    As far I know, all the fields in the select must be reported also in "group by", so how can I handle that?
    {quote}
    Correct - for an aggregate query all columns in the select must be either aggragate functions or in the GROUP BY.
    {quote}
    Now, what I need, is exclude "field3" from the "group by" since I only need field 1 and 2 to be grouped, but I also need field3 in the output
    {quote}
    Well what is it you are counting? And how should the values of field3 relate to those groups?
    Post some sample source data and the sample result data you want to produce.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • FI-AP (vendor master group, Zip code required field)

    Hello SAP Guru's,
    I am working on Vendor master data groups and my client asked me to make the zip code field mandatory. When i go to "define account groups with screen layout- vendor name-general data- address, i don't see a tab for Zip code to make it a required field. However, i checked Postal code, city field and make it into a required field. Is zip code = Postal code, city? or do i have to contact other programmers so they can design this functionality in SAP?

    Dear,
    yes, I also confirm You that the Zip code is the Postal code.
    So please go to IMG --> Define Account Groups with Screen Layout (Vendors)
    and for Your Account Group do the following setting:
    double click on General data --> double click on Address
    and define as Required entry the field Postal code, city technical names:
    City                         LFA1-ORT01
    Postal Code            LFA1-PSTLZ
    I hope this helps You.
    Mauri

  • F110 : How to group payments by assignement field (ZUONR)

    Hi,
    I have created a Grouping key '02' and I assigned this grouping key to a vendor for which I will run a payment program.
    In customizing I assigned field1 ZUONR (Assignement) to my Grouping key '02'
    I run Tcode F110 to pay 3 invoices :
    Invoice 1 : Assignement = Investment
    Invoice 2 : Assignement = Exploitation
    Invoice 3 : Assignement = Exploitation
    When I run a payment program (F110) the system create one Payment document and one Check for the 3 invoices !
    However, for my case I want to create 2 payment documents and 2 Checks, one for invoice 1, an other for invoice 2 and invoice 3
    Please Have I forget a Customizing point ? how to do to have 2 payment documents in my case ?
    Regards.

    see this in OSS note 305414 - F110: Unintelligible grouping of documents:
    2. A grouping key is stored in the master record of the vendor/customer.The fields according to which the payment program groups the documents are defined per grouping key in Customizing (Transaction OBAP).
    If this grouping key does not work the way you expect it to, check whether report RSZGR000 contains the respective source code (the keys defined in Transaction OBAP have to exist in the CASE statement for G01-ZGRUP). If this not the case, you have to generate the report. You can do this by changing one of the entries in the transaction and subsequently saving it.

Maybe you are looking for

  • Problem with CRM 2011 web front end cluster

    Hi. We have a CRM 2011 (RU17) environment with a SQL DB server and 2 web front end CRM server in a cluster. Since few days (about 10) it seems that one of the 2 nodes is not working, and since yesterday many users report access problems when calling

  • IMAC won't recognize external hard drive anymore

    I am running snow leopard on my IMAC with all the latest software updates. I've been using a LaCie Quadra external hard drive with time machine for backups for awhile with no problems. From the beginning is was plug in the hard drive and go, the mac

  • Cannot delete InfoObjects

    Hello, I defined a Characteristic "Org Unit" which has 3 Characteristics namely "Company", "Area" and "Department" as navigational attributes. These 3 attributes in turn I have created using "Org Unit" as a reference. Now I want to delete all the 4 C

  • Purchasing of finished product

    Hi Experts,                For finished product we have not maintained the purchasing view in material master. While creating purchase order i am not getting error that material is not maintained for purchasing. Msg no ME 046. But I have checked the

  • Using itemtype img tag and meta tag with {tag_largeimage}

    Hi everyone Just getting into using Social Media meta Tags for my online store using bc Schema.org markup for Google+ Twitter Card data Open Graph data and I used this site for reference Must-Have Social Meta Tags for Twitter, Google+, Facebook and M