Dynamic Number Of Data Columns

Greetings - I'm attempting to create a report that has a dynamic number of columns.  The type of data in the columns varies (number, string), and I need the details to display, not a summary.
If I knew the max number of columns I'm sure I could figure out some logic to make it work, but that is not the case.
Data example:
Row 1: Name Timestamp Country Height ...
Row 2: Name Timestamp Country Weight ....
Desired report:
Hdr1-Hdr2Hdr 3-Height---Weight
Name Timestamp Country Height   <blank>
Name Timestamp Country <blank>  Weight
There may be a solution in a cross-tab but I will need the Name, Timestamp, Country in separate columns as this may be output as CSV.
Any assistance will be appreciated.

Generally, when you don't know the number of columns, a cross-tab is the way to go.
You can get the first three column that you stated by putting all three fields in the Rows section of the Crosstab Expert. 
As for the data returned from the database, you'll want the three row fields, a "value name" field (containing value such as "Weight" and "Height"), and then a Value column with the value of the "value name" field.
HTH,
Carl

Similar Messages

  • To restrict the number of data columns displayed in BW Web report

    Hi,
    In the corresponding Bex query i am using 'Start Time' characteristic in the row. In the BW Web template i don't want the 'Start Time' to be displayed when i execute.
    I tried to restrict the number of data columns displayed in the web item table properties but that did not help
    Can i get some help
    Thanks,
    Mala

    Hi Mala,
    You can try out the following: Create a view on your query and in that view remove the Start Time char from the drilldown. Use this view as a data provider in the web template.
    Hope this helps...

  • Data column in Manual planning Layout

    Hi,
    I have a KF in data column and year as a dynamic in the data column. Year is restricted to 2006 and 2007 in the planning level. When layout is executed is displays 2 columns 2006 and 2007 other then lead cols which as expected. Now at this stage I can enter data for both 2006 and 2007. What I want is that when layout is executed the col for 2006 should be display only and the user should be able to enter data only for the col 2007. How can this be achieved?
    Thank you,
    sam

    Goto the planning area and create a data slice. When you get to the data slice screen on the right hand side in Bps0, you will see list of characteristics and go to the fiscal year and in that in from column, enetr 2006. Save the model
    Execute the layout and you will see the cell for 2006 greyed out.
    Ravi Thothadri

  • Freeze Data Columns in WAD

    Hi,
    I want to freeze the Row Header as well as some data columns in WAD.
    Eg
                                                    FY        HY1      Jan   Feb .....       HY2  July...
    Sales Org   DistrCh    Site         1200      600       100                      500
    Now I want to fix the the columns till HY1. Out out these 5 columns I am able to fix the header thats is the first three columns but I am not able to Fix FY and HY1 aswell.
    Best wishes, Dheeraj

    Hi,
    To Freeze column in WAD;On the properties tab select table. goto web item tab. in number of data columns displayed put value as 4. (you can change as per ur need).
    Also Pls go through thes links
    http://web.tampabay.rr.com/bmerkey/examples/locked-column.css.html
    http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html
    For visiblity
    you can set visible rows and columns in the specific properties of web item table! Just click the table in the Web Application Designer and than look into the specific properties. Select "Number of Data Rows..." or "Number of Data Columns..." as you wish!
    Hope this helps
    Regards
    CSM Reddy

  • XML Publisher - Dynamic Data Columns Issue

    Hi,
    I am creating a amortization report where I need to show the amortization schedule for unearned revenue. Customers have signed different years of contract and I need to show the amount as per their remaining contract months. So if there are 2 month remaining in the contract then I should show the data for 2 months only and if there are 10 months then I should display 10 months. If we run the report for both customers then it should display two lines in report. For first customer the data should be only for 2 months and for second row(customer) there should be data for next 10 months. These months should be columns in the report(like excel columns, not rows). I need to display all months in columns instead of rows.
    I have acheived that using Dynamic Data Columns as mentioned in the user guide. Everything is working fine except following issues -
    1. How to create page level total?_
    I have created page total in my template using <?add-page-total:TOTUREV;'UREV'?> and displaying using <?show-page-total:TOTUREV?> but when I run the report in excel format these page total do not display. These columns are static columns not dynamic.
    If I run the report in pdf format then the static column total is displayed correctly.
    2. When I run the report in excel format then report run fine and it shows all the columns properly but if I run the report in pdf format then the dynamic column are not displayed in their own columns, all the columns are overwriting each other in a single columns itself, its not expanding.
    3. How do I get the total for the dynamic columns?_
    I need to display the page level total for the dynamic columns also, how do I do that?
    4. When I run the report in excel format the 2 decimal places of the numbers are gone(it works fine in pdf output), like 12.50 becomes 12.5 and 14.00 becomes 14. I need to maintain those 2 decimal places. I have tried using <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?format-number:CVALUE;'999999D99'?></fo:bidi-override> but this does not solve my problem completely. It shows the values correctly in excel but then I am not able to do any calculation on those columns, looks like it converts them to text values.
    Any help is really appreicated. Please let me know if you need the xml template and data file.
    Regards
    Hitesh

    Hi Hitesh,
    Can you please upload your RTF and XML template file? I will try to spend sometime on this issue.
    Cheers
    Sachin

  • BI  Layout/Template | Table with dynamic number of columns

    hi!
    i have a problem concerning the creation of a dynamic report with the BI publisher.
    in my BI template i need a table with a dynamic number of columns. i have searched the
    forums but havent really found a solution for this type of problem.
    first of all this is A dummy-structure of my dataset:
    <ROWSET>
         <ROW>
              <FIELD1>1</FIELD2>
              <FIELD2>2</FIELD2>
              <FIELD3>3</FIELD3>
              <FIELD4>4</FIELD4>
         </ROW>
         <ROW>
              <FIELD1>a</FIELD2>
              <FIELD2>b</FIELD2>
              <FIELD3>c</FIELD3>
              <FIELD4>d</FIELD4>
         </ROW>
    </ROWSET>
    in the report the fields represent the columns i need in the table.
    the problem is, that the number of the fields vary. in this example i have 4 fields/columns
    but another time i may have 6 or 10 etc..
    my dataset is always different because i am loading my dataset via a http request which is
    returning the needed data in XML.
    is there a nativ possibility within the publisher to generate the columns dynamically?
    i read about <?split-column-header:group element name?> etc. but this is only for cross-tables.
    can anybody give me a hint how to approach this problem?
    would be very glad for some advice.
    thanks a lot in advance!

    Specific answer is here
    http://winrichman.blogspot.com/2008/09/dynamic-column.html
    but these link let you know, how to do
    http://winrichman.blogspot.com/search/label/Dynamic%20column
    http://winrichman.blogspot.com/search/label/Cross-tab
    http://winrichman.blogspot.com/search/label/cross%20tab

  • SUB Totals within a Dynamic Data Column

    Has anyone ever calculated SUB Totals in a Layout with a Dynamic Data Column?
        The TOTAL for all data is expressed on the Data Column tab of the Layout as C(1):C(1) - 0FISCPER / Posting Period is the Dynamic Characteristic.  When the system actually displays the 12 columns of data for the Year, the formula for TOTAL is also adjusted - no problem here.  But the user also wants SUB Totals, by Quarter, within the Year.
        Any insight or suggections are appreciated !
    Thanks,
    Lyle

    Hello,
    use variables Q1, ..., Q4 for the quarters and create
    data colums as follows
    1 Q1 dynamic = X
    2 Total C(1)
    3 Q2 dynamic = X
    4 Total C(3)
    5 Q3 dynamic = X
    6 Total C(5)
    7 Q4 dynamic = X
    8 Total C(7)
    9 Year Total C(2)C(4)C(6)+C(8)
    Regards,
    Gregor

  • Grouping of chracateristics by using dynamic data columns

    Hi all,
    I want to create a BPS Layout (BW3.5) with the material in the lead column and a KeyFigures, the year and the salesgroup in the data column. The salesgroup is the dynamic characteristic.
    Example:
    I want to have:
    SG1 2007/   SG1 2008/   SG2 2007/   SG2 2008...
    What the system is doing is:
    SG1 2007/   SG2 2007/   SG1 2008/   SG2 2008
    My question is: how can I change the grouping of the columns from year to salesorg?
    Can anybody help me?
    Best regards,
    Rainer

    Hi Rainer,
    Thanks for your appreciation.
    I thought there is not material in your lead column, okay if your case like that i suggest you like this.
    I suggest to .
    To choose Layout Category:
    1. Key Figures in Data Column
    Define data column dynamically for : Sales Group
    And make the fiscal year, and material as lead column.
    In the data column tab, define the key-figures there and mark Dynamic checkbox.
    Or if you want to group based on the fiscal year, you can make the fiscal year as you dynamic data column.
    Hopefully it can help you a lot.
    Best regards,
    Niel.
    thanks for the points you choose to assign.

  • Dynamic Number of Column in a table

    Hi guys,
    I have a requirement that needs dynamic number of column in a tale.
    It is possible to do this in Adobe forms.
    Thanks,
    Chirantan

    Hello. It of course is possible in Adobe.
    You need to write a simple script using JavaScript or FormCalc to hide or show columns according to some special value. You will work with the presence attribute of the object. E.g. MYFIELD.presence = "visible" or "hidden" or "invisible". You will need to change your subforms content to flowed.
    Use these guides:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Hope this helps, good luck, Otto

  • Dynamic Data columns

    Hi...
    Here's my scenario. My layout is keyfigures in lead columns.
    I want Calendar Year in the Header. I want the Calendar Year/Month (0CALMONTH) in data columns.
    But, the data columns should be dynamically set to the 12 months of the Year I choose as part of the header combination. Example, I choose 2008 as header:
    Layout should alow me to enter sales for all months of 2008. So, data columns should become:
              Jan 2008   Feb 2008   Mar2008   Apr2008  .....
    Sales
    I'm open to ideas for other types of layouts also as long as the the months (0CALMONTH) are derived based on Calendar Year.
    Thanks...

    KJ, thanks for your response.
    Dont mean to question your suggestion at all. But is that only way?
    I mean to me deriving a calendar year month seems to be a normal practice.
    But if thats the only way, could you please provide more insight and possibly an algorithm for the exit? never worked exits before in the cotext of BPS.
    Thanks...

  • Header description of dynamic data columns dynamically

    Hi all,
    How is it possible to get Header description of dynamic data columns dynamically??
    Thanks and regards,
    Harry

    Harry,
    Don't have the system right now so going by memory.
    There are 2 parts - you need to see how you specified the text replacement of the variable.  Say on 0fiscper if you specify characteristic value it would show I think 001.2007, 002.2007, etc.  If you use one of the text types, it would be based on the description.
    I always have to think if I need to put the infoobject name or the variable name in the layout definition in the description part.  Off the top of my mind, it would be the infoobject name i.e. 0fiscper for example

  • Unable to setup fixed number of report columns based on a dynamic query

    Hi guys, I need to find a way to replicate below output. Unfortunately it cannot be done using the column group feature due the fact it will create not so many rows as I need. In the below case it would create
    only four columns. I need 10 columns. Basically for 100 m 6 columns would remain blank . 8 for 200 m .I'm using SRSS 2008R2
    Query results:
    Race Name Ranking
    100m Andrew 1
    100m Rachel 2
    100m Chris  3
    100m  Drew 4
    200m John 1
    200m  Billy 2
    Report output should look like:
    Race    1 2    3 4 5 6 7 8 9  10
    100m  Andrew Rachel Chris Drew
    200m John Billy
    Any suggestions?

    As I understand, you want a fixed number (10) of columns and you want them whether or not there are 10 rows returned by your dataset for a given race.
    What is your dataset?
    What if your dataset returns 15 races of a given type? Do you want 15 columns then?
    Assuming your dataset is TSQL, you can use a matrix in your report if you tweak your dataset query. First, you need to add a "default" set of data that guarantees your 10 columns. This can be done with a set of UNION statements:
    UNION
    SELECT '100m' AS Race, '' AS Name, 1 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 2 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 3 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 4 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 5 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 6 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 7 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 8 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 9 AS Ranking
    UNION
    SELECT '100m' AS Race, '' AS Name, 10 AS Ranking
    This gives you the 10 columns. In the matrix, set row group to Race and column group to Ranking. Set the intersecting detail cell to:
    =Max(Fields!Name.Value)
    This will give you 10 columns unless you have more than 10 rows returned for a given race.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • What is the best way to dynamically create table partition by year and month based on a date column?

    Hi,
    I have a huge table and it will keep growing. I have a date column in this table and thought of partition the table by year and month. Can any you suggest better approach so that partition will create automatically for new data also along with the existing
    data? Nothing but automatically/dynamically partition should create along with file group and partition files.
    Thanks in advance!
    Palash 

    Also this one
    http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Dynamic  Lead Columns / Data Columns

    Hi
    I want to use dyanmic data columns restricted by a characteristic relationship of another variable.
    When I use the characteristic as a lead column, it works perfect, I only see the rows for valid lines.
    When I use the characteristic as a data column, I see all possible characteristic values of that characteristics. The ones that are not valid are not ready for input, the ones that are valid are ready for input.
    I would like to use dynamic data columns but only display the columns with a valid characteristic relationships (just the way it works when I put the characteristic in the lead column)
    Should that work?
    Thanks

    Enable Zero-Suppression on your column structure. Then in your Query properties, enable zero-suppresion for columns. That way only characteristic values with data will be shown and not all possible characteristic values present in the master data tables. I should note that there should be some data in the fact table which links the keyfigure to the characteristic value, otherwise it will be suppressed.

  • Data column number formatting in Excel

    Can I overwrite the formating for the data columns in excel?
    For calculation purposes I need 2 decimal places defined for the data columns but when I display I dont want to see the decimals, I want to see the rounded number. But I cannot format this on the excel. Any suggestions?
    Thanks!
    Hema

    Hi,
    In the definition of your planquery, go to the properties of your key figure and assign the number of desired figures behind the comma.
    -> in your workbook if you click on your cell, you will see the number of figures behind the comma according to your info-object in the formula bar, but in the layout itself it is rounded according to your query settings
    D

Maybe you are looking for

  • Changes to an order through Call Transaction not showing up in change log

    I m having a problem such that if I update an order programmatically with Call Transaction u2018VA02u2019, the order does get updated updated but I donu2019t see the changes in the change log. I m only updating the order quantities. However if I upda

  • OS7 browser problems on Torch 9810 (incl. dead touchscreen and migrating cursor)

    The browser on the Torch 9810 has two interrelated problems. On certain mobile sites -- The New York Times in particular -- one will suddenly be unable to use the touchscreen to tap open links and the cursor will remain constantly visible, slowly mig

  • Limewire doesn't launch.

    Is anyone else having this problem. The Limewire website addresses an issue with OS X 10.3.9 and Safari, but I found no help in that. Cheers Iain G4 Powerbook 12   Mac OS X (10.3.9)  

  • How to retrive table data in form

    Hi all, I want to retrive whole table data in forms , just by passing table name.either through a prcedure or function. is it possible to do this? Thanks in advance

  • My powerbook won't boot

    I have a big problem! Last night I wanted to install the 10.4.6 update fråm software update. It found a lot of other updates as well which all went fine. When it was installing the 10.4.6 it suddenly quit and said that some sort of error occured, and