Displaying dynamic columns in the query output.

Hello,
Depending on current quarter output of the query would vary.
If current quarter is 'Q1'
O/p : InvQ1  Del  BackQ1  BackQ2  BackQ3  BackQ4
If current quarter is 'Q2'
O/p : InvQ1  InvQ2  Del  BackQ2  BackQ3  BackQ4
If current quarter is 'Q3'
O/p : InvQ1  InvQ2  InvQ3  Del  BackQ3  BackQ4
If current quarter is 'Q4'
O/p : InvQ1  InvQ2  InvQ3  InvQ4  Del  BackQ4
So, out of 9 columns, 6 columns would display at any given time depending on the current quarter.
Invoice of 4 quarters, Deliquency and Backlog of 4 quarters.
I am not getting any way how to display dynamic columns or hide unwanted/blank columns.
For the time being I have added all 9 columns in the query, and in the output unwanted columns shows blank.
Can anybody please suggest me how to display only 6 columns in the output depending on current quarter.
Thanks and Regards
Shilpa

Hello,
This shouldn't be too difficult. Assuming you have a variable with the selected quarter, you may choose to display Inv (whatever that is) for quarters 1 through variable, Del, and Back for quarters variable through 4. You also need a drilldown on quarter in the columns (after the key figure structure). You would probably need to restrict 'Del' on the variable as well if you haven't already done it.
Best regards,
Christoffer

Similar Messages

  • Force a column in the query output  for FYPD  when no data exists

    Hi ,
    I have a requirement, data available in the cube
    <b>FYPD-----Costcenter---- Emp#----StartPD---EndPd--
    Amt</b>
    2007001-----123456 789---2007004-2008012--
    $10
    In the variable input screen FYPD range is entered ex: 2007001 - 200704
    expected report output;
    <b>costcenter--Emp# -StartPD---EndPdAmt- 2007001-- 2007002  -
    2007003----
    2007004 (Columns KF's)</b>
    23456--78920070042008012$10000--
    1.
    The 0 and 1s are calculated based on Start& End Pd. If  STARTPD <= FYPD<= ENDPD
    Then output = 1 else 0.
    Problems:
    1. How to force columns for 2007002 to 200704 when there is no data in the cube for those periods?
    2.If somehow we are able to force the columns how to use the column header in the formula to calculate 1 or 0?
    Any idea?????

    If you add some kind of calculation behind your KF that is based on a field that exists for all records it should be fine.  This can be a formula variable based on an characteristic attribute like (mat weight/mat weight). 
    If you're saying you want a 0 to show up when there are no records in the cube for the characteristics in question then it may be more difficult.
    Please clarify

  • How to get sum in new row (not in a new column) in the query output ?

    There are values in a table like this:
    A B C D
    DEsc1 ID1 15 45
    DEsc2 ID1 10 67
    DEsc3 ID2 12 34
    Desc4 ID2 19 32
    How to achieve this output :
    A B C D
    DEsc1 ID1 15 45
    DEsc2 ID1 10 67
    --- ID1 25 112 <--- Sum of two rows corresponding to C and D whose B column is same
    DEsc3 ID2 12 34
    Desc4 ID2 19 32
    Desc5 ID2 10 12
    ----- ID2 41 78 <---- Sum of three rows corresponding to C and D whose B column is same

    SQL>WITH t AS
      2       (SELECT 'DEsc1' AS a, 'ID1' AS b, 15 AS c, 45 AS d FROM DUAL
      3        UNION ALL
      4        SELECT 'DEsc2', 'ID1', 10, 67 FROM DUAL
      5        UNION ALL
      6        SELECT 'DEsc3', 'ID2', 12, 34 FROM DUAL
      7        UNION ALL
      8        SELECT 'Desc4', 'ID2', 19, 32 FROM DUAL)
      9  SELECT   DECODE(GROUPING(a || ' ' || c || ' ' || d), 0, TO_CHAR(MAX(a)), '-----') AS a,
    10           MAX(b) AS b, SUM(c) AS c, SUM(d) AS d
    11      FROM t
    12  GROUP BY b, ROLLUP(a || ' ' || c || ' ' || d);
    A     B            C          D
    DEsc1 ID1         15         45
    DEsc2 ID1         10         67
    ----- ID1         25        112
    DEsc3 ID2         12         34
    Desc4 ID2         19         32
    ----- ID2         31         66Urs

  • How to display header title for 0MATERIAL texts in the query output?

    Dear Bwers,
    I have a requirement where i need to display headers titles for 0MATERIAL texts in the query output. (example "Material description"). Any ideas on how to do this?
    Thanks
    Raj

    Kamal,
    Its is as below:
    <b>Vendor</b>    <b>Vendor Name</b>
    1001 ---            Bright Industries
    1002 ---            Glow Industries
    I want to display the header title "Vendor Name" as the  title in the column instead of displaying the text without any header title.
    Thanks
    Raj
    Message was edited by:
            Raj Singh
    Message was edited by:
            Raj Singh

  • ERROR displaying in the query output... urgetn

    hi experts,
    For the amount keyfigures in the query output it displaying ERROR after the amount like ex- 2000 ERROR.
    plz let me know how to rectify this..
    regards
    vadlamudi

    hi,
    i have created only two keyfigures EMP_BASIC and EMP_HRA. and in the transformations i have mapped with 0DOC_CURRCY.
    but in the report its showing ERROR only after the amount. plz tell me exactly with what field i need to map???
    regards
    vadlamudi

  • Problem with dynamic columns in the BEx report

    Hi Gurus,
    I am tryging to build some planning application using BI-IP and input ready queries.
    I'm facing issues with making the columns in the query 'dynamic'. The example is given below: -
    Lets say there are states and cities for which we have to plan sales volumes. Depending on the value I choose for 'State' it should create as many columns for 'Cities' as per the hierarchy of the cities.
    Lets say if I choose Maharashtra then the report shud look like :-
    State-> Maharashtra
    Rows               Column1                      Column2                      Column3
    GL Account      Mumbai/0quantity        Pune/0quantity            Aurangabad/ 0quantity
    1000000            1000                               1500                              1200
    State--> Karnatka
    Rows                 Column1                  Column2
    GL account        Bangalore                 Mangalore
    1000000
    Any idea how this can be achieved?
    Best Regards,
    SSC

    Hi friend,
    See the link below it is having the solution of hiding the columns in smart forms
    Hide table columns in smart form?
    Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
    I think this will solve your issue if you still have queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Central Management server - executed a query but how to send the query output in the form of mail?

    Hi All,
    i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
    basically query is checking the rows count from couple of user tables in servers.
    issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
    could you please suggest how can i achieve this?

    Copy to what?
    SELECT COUNT(*) FROM sys.objects
    Running the above statement returns two columns (server name and count)
    All the servers SS2005  and onwards , then use
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'name', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM sys.objects', 
         @subject = 'Count rows'
    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

  • 'Display as hierarchy' in the Query Designer

    Hi,
          Can anyone highlight some points or importance of 'display as hierarchy' in either rows or columns in the query designer. Also could someone put some thoughts on the 'new structure' in the query designer, is it just that we can create some new selection and new formula from the structure or is there any other explanation for its existence. Any kind of explanation would be greatly appreciated.
    Thanks,
    Anjali.

    Hi Anjali,
    display as Hierarchies:
    simply enables you to select and use hierarchies for that InfoObject if available.
    Structures:
    you can create structures with or without keyfigures. Structures give you a great deal of flexibility and consistancy in your reports. Eg. you can create a structure that gives you a drilldown on char selections that are different for each line or column. We use that to "simulate" divisions in a drilldown that we don't have backed up by masterdata.
    Also structures enable you to keep reports consistant by using the same global structure eg. for all Contribution margin reports
    Hope that helped,
    regards,
    michael

  • Dynamic change in the query name based on user input

    Hi Gurus,
    In a scenario, country appears as a user input variable.When the user specifies his country, the same query displays <b>Business trends</b>' data pertaining to his own country and rest of the world(international) in two tables.The reports are developed using Web application designer.
    Can the name(description) of the query be changed  so that the user input value for country gets dynamically reflected in the query name like <b>Business trends:Selected country vs International</b>?
    Regards,
    Balaji

    Hi Bala,
      ya this can be done by text variables. create a text variable( replacement path on the country infoobject) by going to the query properties on the description.
    if the user enters country value then it will be displaed on the description of the query .
    assign points if useful .
    regards
    santosh

  • Anyway to supress the coulmn names in the query output from SQLPLUS

    Hi,
    I am using sqlplus to run a script which returns the results with column names.
    Is there anyway to omit the column names from the query output from sqlplus?
    I would like to have only results with out their column names in the output.
    Thanks in advance!!

    Hi,
    Maybe your LINES(IZE) isn't set ?
    SCOTT>set lines 130
    SCOTT>select status, machine, module
      2    from v$session
      3   where upper(username) = 'SCOTT';
    STATUS   MACHINE                                                          MODULE
    INACTIVE PFAE3\VPC4894-03                                                 TOAD 9.7.2.5
    ACTIVE   PFAE3\VPC4894-03                                                 SQL*Plus
    2 rows selected.
    SCOTT>As an alternative to setting linesize, you can format columns:
    SCOTT>set lines 80
    SCOTT>col status for a8
    SCOTT>col machine for a30
    SCOTT>col module for a30
    SCOTT>select status, machine, module
      2    from v$session
      3   where upper(username) = 'SCOTT';
    STATUS   MACHINE                        MODULE
    INACTIVE PFAE3\VPC4894-03               TOAD 9.7.2.5
    ACTIVE   PFAE3\VPC4894-03               SQL*Plus
    2 rows selected.
    SCOTT>Regards
    Peter

  • Suppress zero rows in the query output.

    Dear Experts,
    We executed a query. In the output the values are displayed based on a hierarchy on gl account.
    But in the output some rows dont have any values i.e 0 value. Still those rows are appearing in the report output.I want to
    supress entire row. How to supress the entire row if no value i.e zeros are appearing in the query output.
    Regards,
    Bhadri M.

    go to change mode of query
    in that set the query properties /go to the query property secreen
    in the "Display " tab set the supperssion as "active (all value=0)" and in structure properties select the check box "also use  zero suppression for strucure element"
    i think it will be help ful
    Edited by: Soma Venkateshwarlu on Aug 28, 2009 2:40 PM

  • How to replace # in the query output ?

    Hi experts,
    In the query output and for a particular field in a record if there is no value then it is displaying as '#'.
    Can  we replace '#' with any text or with any other value ?
    Regards,
    Nishuv V.

    hello,
    if you display the characteristics as Key u will get as '#'.
    You can select as Text,then it will show 'Not Assigned'.
    Further, check on these threads:
    How to replace '#' with blank when there is no value for a date field
    Re: How to replace display attribute Value '0', instead of '#' in the query
    Reg,
    Dhanya

  • Result Row in the query output

    Hi,
    If I restrict a characteristic by hierarchy then I can’t have the result row displayed. If the hierarchy active is removed then the result row gets displayed. All characteristics are marked to show the result row.
    This characteristic is Account Number. If in the query definition I remove the restriction on account numbers and just select hierarchy active and the required hierarchy in the properties then I get the result row in the output. But now it also displays all the unassigned account numbers in a separate node “Not Assigned Account Number (s)”.
    I can’t even restrict it in the output with hierarchy active selected. When I do select filter value in the output the options Include in Selection and exclude from Selection are grayed out and hence can’t select it.
    Please advice on this issue…
    Thank you,
    sam

    Hi Jaya,
    I think you misunderstood my issue.
    My problem is not that i do not want to see the field. But instead, i do not want to see only the results row in the query output.
    I need to have the results to populate a calculation via sumct formula.
    My question is, can sumct be populated if i hide/supress RESULT row ?
    Regards,
    Maili

  • New column in the ALV output of transaction phap_admin_pa

    Hello All,
    I want to display a new column in the ALV output of transaction phap_admin_pa. Is this possible? If so, could anyone please give some guidance how to proceed. The new column willl contain the elements from appraisal catalog. Do u think there will be any BADi's to achieve this or I am not sure if a custom program need to be created?
    Thank you very much,
    Rush

    Hi
    I had same problem of adding felds from additional data into the ALV and when I asked SAP they told me to implement BADI HRHAP00_REPORTING.
    I am still trying to get some info on how to implement it if you find any documentation of someone who has implemented appreciate you tell me.
    regards
    Pravin

  • How to display dynamic column added by vo.addDynamicAttribute in jspx?

    Hi,
    I met problem when programmatically add cloumn and display it on screen. Here are my steps:
    0. define a ViewObject using xml. Define a transient column Addtion2. later will add a dynamic column Addtion3, but not defined here.
    1. Implement Application Module, adding a method init() and expose it to client.
    2. In init() method, get target VO and use vo.addDynamicAttribute("Addition3"). Then iterate it use row.setAttribute("Addition3", Math.random()). Add init() to page binding and invoke it.( it's invoked )
    3. In jspx, use dynamic table. But Addition3 never shows up.
    This is my last question: Re: How to display dynamic column added by vo.addDynamicAttribute in jspx? People say I should use dynamic table.
    please have a look at my code:
    Application Module: when it runs, it will print 6 coulmns. vo.getAttributeCount() is <font color="red">6</font>.
    <pre>
    public void init() {
    ViewObject vo = this.getCountryView1();
    if (vo.getAttributeIndexOf("Addition3") == -1) {
    vo.addDynamicAttribute("Addition3");
    vo.executeQuery();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    RowSetIterator it = vo.createRowSetIterator("i1");
    while (it.hasNext()) {
    Row r = it.next();
    r.setAttribute("Addition2", Math.random());
    r.setAttribute("Addition3", Math.random());
    it.closeRowSetIterator();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    System.out.println(vo.getAttributeCount()); //vo.getAttributeCount() is 6
    </pre>
    jspx: when it runs, only 5 columns are shown. Column Addition2's values are set as expected. but Column Addition3 never shows up. And #{bindings.CountryView1.attributeCount} shows <font color="red">5</font>.
    <pre>
    <af:table rows="#{bindings.CountryView1.rangeSize}"
    fetchSize="#{bindings.CountryView1.rangeSize}"
    emptyText="#{bindings.CountryView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" rowBandingInterval="0"
    value="#{bindings.CountryView1.collectionModel}"
    selectedRowKeys="#{bindings.CountryView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CountryView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1">
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:column headerText="#{def.name}"
    sortable="true" sortProperty="#{def.name}" id="c1">
    <af:outputText value="#{row[def.name]}" id="ot1"/>
    </af:column>
    </af:forEach>
    </af:table>
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:outputText value="#{def.name}" id="ot2"/>
    </af:forEach>
    <af:outputText value="#{bindings.CountryView1.attributeCount}" id="ot3"/>
    </pre>
    it's quite weird for me. The vo.getAttributeCount() is 6, but #{bindings.CountryView1.attributeCount} shows 5. And column Addtion3 never shows up.
    what's the matter? How can I show the dynamic added column Addtion3?
    Edited by: simon li on 2012-9-10 下午7:31
    Edited by: simon li on 2012-9-10 下午8:00

    Hi,
    Can you check the tree binding (CountryView1 - in the pagedef) and see it has the 5 attributes hardcoded in it. If yes, try removing everything and then run the page to see if it works fine.
    -Arun

Maybe you are looking for

  • MB Colorista renders interlaced in (AME) APP CS4

    Hey everyone, Everytime I apply colorista to a Clip in Adobe Premiere Pro CS4 and render it out with Adobe Media Encoder (Youtube Widescreen HD, H.264) the parts of the video are interlaced although my footage, sequence as well as my render settings

  • [SSIS.Pipeline] Warning: Warning: Could not open global shared memory to communicate with performance DLL

    Hi All, I am running an SSIS solution that runs 5 packages in sequence.  Only one package fails because of the error: [SSIS.Pipeline] Warning: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance cou

  • Power Mac 1.8 Dual G5 Runs slooooow

    We have 2 Power Mac G5's running the same OS 10.4.11 and Adobe creative suite 2. An issue with one is that it opens all Adobe aps real slow. It took 52 seconds to open InDesign but the other Power Mac opened it in 16 seconds. Also, an 84 MB file in P

  • Apply gradient to text, cs5 like Classroom in a Book

    I need to create a title in a document, a single word heading at the top.  I'm using Win7 32 bit and AI cs5 and the book, Classroom in a Book. I'm on page 310 where "Mike's Coffee" is the tutorial text.  I've converted my text to path outlines, then

  • Navigation from one layer to other ...

    I have got three layers . first one has Bapi_Bank_Getlist Input form . Second one has Bapi_Bank_Getlist output table. Third One has Bapi_Bank_GetDetail Output data . navigation is proper from first to second but when i <b>click a row</b> in the 2nd l