Want to display a date in column heading.

Hi all,
Will be thankful, if anyone can tell me how to solve one of the issue i am facing in webi variable display.
In universe, i am creating one prompt for date and user will enter the desired date, and with respect to that date, the previous date and previous month last working date will come. In my Webi report , i have 3 dates and one measure(Quantity) with other dimensions like Product and Subproduct. 
I have one cross table in which in want to show the 3 dates as Column heading, Product as row heading and Quantity(measure) in the table body. I have one more dimension as Area... which i want to show in horizontal way, for each Area, i want to show prompted date, previous date and previous month last date. I have created 3 variables.... 
1. Current date = Max(date) In Report
2. Previous date = Min(date) In Report
3. Previous Month last day = (date) where (Rank = 2) ForEach(date)
By this way, I am able to show Current date and  Previous Month last day in column heading, but not Previous day. Will appreciate if anyone can help me on the issue. let me know if any other information is required.
Thanks
Archit Sarwal

Hi,
The previous date is the previous business day, it can be dynamic. And previous month's last day is last business day, it can also be dynamic. And Previous daye can also be previous month's last business day in one of the scenerio.
Actually i am using 3 filters with prompts (common prompt) in universe side. User will enter the date and corrosponding previous business day and previous month's last business day will come. 3 filters are:
1. Current_Day = @prompt('Enter Date(YYYYMMDD)','A',,Mono,Free,Persistent)
2. Previous_Day = (SELECT TOP 1 Date from [TableName] where Date < @prompt('Enter Date(YYYYMMDD)','A',,Mono,Free,Persistent) Order By Date Desc)
3. Prior_Month last Day = (SELECT TOP 1 Date from [TableName] T where Month(T.Date) = Month(DateAdd(mm,-1,@prompt('Enter Date(YYYYMMDD)','A',,Mono,Free,Persistent))) Order By T.Date Desc)
Dates are coming correct from Universe.  In Webi, i have created variables...
CurrentDate = max([Date]) In Report
LastDate = Min([Date]) In Report
PriorDate = [(Date]) where ([Rank]=2) ForEach ([Date])
I have calculated Rank for Date, and Rank 2 shows the Prior Date. Also, i have Entity, and want to show these dates for each entity along with 2 -3 more columns that depends on these 3 dates values. I am attaching the screenshot for the sample.
Thanks
Archit Sarwal

Similar Messages

  • Problem in displaying the data of columns into rows in sap script

    hi,
    i am working on a sap script and i have to display the dat which is displayed in column into rows but it is not displaying it properly.
    eg, C
        12.1
        Si
        5.5
    it is displaying the data right now like this but i want to display the  data like this:-
    eg, C      Si
        12.1   5.5
    plzzprovide me guidelines how to solve this problem.

    hi,
    i am using this code to display the data:-
    plzz provide me guidelines where i am getting wrong?
    TOPparCOMPONENT DESP,,,,,, INS. LOT #, , , , , , MIC,,,,,,,,,, MIC VALUEparENDTOPparFINAL
    PROTECT
    IF &I_FINAL-PRUEFLOS& NE '000000000000'
    &I_FINAL-MAKTX(23)&&i_final-prueflos(12Z)&
    &I_FINAL-kurztext(25)&
    &I_FINAL-original_input(8)&
    ELSE
    &I_FINAL-MAKTX(23)&     
    &I_FINAL-kurztext(25)&
    &I_FINAL-original_input(8)&
    ENDIF
    ENDPROTECT
    ITEMHEAD
    POSITION WINDOW
    SIZE WIDTH +0 . 4 CH HEIGHT +1 LN
    BOX FRAME 10 TW
    BOX HEIGHT '1.35' LN INTENSITY 20
    IF &PAGE& = '1'
    BOX XPOS '0' CH YPOS '0' CM WIDTH '0' CM HEIGHT '43' LN FRAME '10' TW
    For horizontal line at top
    BOX XPOS '0' CH YPOS '0' CM WIDTH '75' CH HEIGHT '0' LN FRAME '10' TW
    COLUMN LINES...
    END OF COLUMN LINES...
    BOX XPOS '0' CH YPOS '43' LN WIDTH '75' CH HEIGHT '0' LN FRAME '10'TW
    BOX XPOS '75' CH YPOS '0' LN WIDTH '0' CH HEIGHT '43' LN FRAME '10'TW
    ELSE
    COLUMN LINES...
    END OF COLUMN LINES...
    BOX XPOS '0' CH YPOS '0' CM WIDTH '0' CM HEIGHT '47' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '0' CM WIDTH '75' CH HEIGHT '0' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '0' CM WIDTH '45' CM HEIGHT '0' LN FRAME '10' TW
    BOX XPOS '20' CH YPOS '0' CM WIDTH '0' CM HEIGHT '47' LN FRAME '10' TW
    BOX XPOS '0' CH YPOS '47' LN WIDTH '75' CH HEIGHT '0' LN FRAME '10'TW
    BOX XPOS '75' CH YPOS '0' LN WIDTH '0' CH HEIGHT '47' LN FRAME '10'TW
    ENDIF
    LINEFEED
    NEWPAGE
    NEW-PAGE
    provide me guidelines to solve this problem.
    Edited by: ricx .s on Mar 13, 2009 5:58 AM

  • How to display current date in query header?

    Hi,
    How to display current date in query header?
    I use Query Designer for development.
    Thanks,
    Arun KK

    Hi Arun,
    You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type &field, where field is the short name of a field.
    This function allows you (for example) to place a sort criterion in the header line.
    You can include the following fields as variables in the headers directly:
    %NAME
    Name of the user processing the query
    %DATE
    Current date
    %TIME
    Current time
    %PAGE
    Current page number (6 characters)
    %P
    Current page number (3 characters)
    These fields can be used in the short forms N,D,T and P. If you want to use these letters as short names for query fields, the field values from the query are used.
    You can also see the link
    [http://help.sap.com/saphelp_nw70/helpdata/EN/6e/dd68721faf11d6b1d500508b6b8b11/frameset.htm]
    Regards,
    NR

  • Change Data Table column header color

    How do I change the background color displayed in data table column headers?

    Thanks for your response. Problem is that I'm creating a portlet and the stylesheet.css file does not appear to exist, so Winston's blog does not help.

  • Adding Date to Column Header

    Hi
    I'm having some issues getting a date into a column header for a tab report I am creating.
    this thread
    Re: sysdate in region header
    suggested using a hidden item and having a pl/sql function body and including the item in the header.
    So I set the Column title up with "Outdoors <br> &P1120_DISPLAY_DATE"
    In the item source I set
    begin
    :P1120_DISPLAY_DATE := sysdate;
    end;
    However I end up with a syntax error message when the page starts to draw ...
    ORA-06550: line 1, column 27: PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following: ( - + case mod new not null avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
         Error      ERR-1020 Error in PLSQL item processing (function).
    When I just use sysdate as a test method ( no additional pl/sql) the error goes but the item does not appear to be set. In the Column title I get the item name not the value.
    I wanted to have the column set to Outdoors <br> 12-Mar-05
    Appreciate some guidance on this one.
    Stephen

    Thanks Denes
    That sorts the item out but I can't get it into the column header.
    My item is called P1120_Display_date.
    I have the report column header set to Custom , and the code in the header is
    Col1 < b r > &P1120_Display_date
    and apart for doing the line break thats how it displays. I'm sure its possible I just can't seem to get it.
    Cheers
    Stephen
    Message was edited by:
    StephenP

  • I have only a single texbox.i want to display names , date,priortiy in the same textbox when i typed @ names should be display names like when u type comment in facebook for particular person it will display name. when i type ! date should be display and

    i have only a single texbox.i want to display<big style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe
    UI', Arial, sans-serif;line-height:normal;"> names , date,priortiy </big>in the same textbox <big
    style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe UI', Arial, sans-serif;line-height:normal;">when i typed @ names should be display names</big> like
    when u type comment in facebook for particular person it will display name. when i type ! date should be display and when i type * priority should be display in same textbox like
    example <big style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe UI', Arial, sans-serif;line-height:normal;">@
    names !today date or tomorrow date etc * priority high,low ,medium etc</big>

    This is my first time posting here, so I'm sorry, I re-read my post several times and honestly did think I provided enough information, but you're right, it wasn't the right kind. So please (continue to) bear with me, I'm really not trying to be ignorant. I honestly assumed the issue was something I was doing wrong in Bridge, nothing to do with my computer specs.
    I am using a late-2008 Macbook, running Yosemite 10.1.1 (screenshot below)
    On the Mac I am using Bridge CC 6.1.1.115 and Photoshop CC 2014 (2014.2.1 release, 20141014.r.257 x64)
    Here is a link to the System Info from Photoshop on the Mac
    Here is a screenshot of my System Overview on the Mac
    Here is a screenshot of my Photoshop performance preferences on the Mac
    I am also using a Dell desktop with Windows 8, running Photoshop CC 2014 (2014.2.1 release, 20141014.r.257 x32) and Bridge CC 6.1.0.116 x32 (on a separate CC account with separate files that I don't try to sync or anything)
    Here is a link to the System Info from Photoshop on the Windows computer.
    Here is a screenshot of the system overview on the Windows
    Here is a screenshot of my Photoshop Performance preferences on the Windows computer
    I work with jpg, psd, ai, svg, and pdf files. Most of my stacks are three different file types of the same image, usually jpg, psd/ai, and pdf.
    I have not recieved any error messages
    I am not having issues opening raw files, I am not having printing issues, I have listed the troubleshooting steps I have taken.
    Is there any information you need that I missed? I'm trying not to be a dingus, but I'll have to ask you to be patient with me in the meantime. I haven't ever looked up half the hardware/software details that were suggested and I don't know how to off the top of my head, so I provided what I already knew how to

  • Selection screen data in column heading

    Hi,
    My requirement is to show the value entered in the selection screen in the report output column heading using text elements.
    I am using text element to show the column heading. how can i add a variable to the text element and pass the value to it ?
    Thanks,
    Prasad.

    Hi,
    Its not possible to pass on the variables with the text elements, as text elements are used storing the text written by you in the program and not the values of the variable.
    hence if you want to display the column heading with the variable you can directly write text element first and then write the variable,
    write : text-001, w_variable.
    Regards,
    Siddarth

  • Display scaling factor in column head

    hi, all,
    I use the scaling factor 1.000 in the keyf. properties and the "Display scaling factor for key figures"-klick in the gen. properties. In the column head now appears x1.000 EUR. Is there any (easy ) way to display e.g. "TEUR" instead of "x1.000 EUR"?
    many thanks in advance
    neven

    Hi,
    I don;t think it is possible with Bex functionalities.You can try wih macros..
    Hope this helps

  • I want to display static data in table in web dynpro for java

    Hi,
    I have to display static (textview )data in table . So what im doing is that i have created a node of name "table" then created its attribues and binded it to the table and in table, under "column editor" option of "text"  is there where i can write the required text . But Im not able to do the same thing in other rows. i.e. im restricted to only 1st row. How to enter it in other rows. So i want that i should write some content in all the rows of table and display it in text view when i execute it. Its just like u r presenting an excel sheet in output form to the user .
    Thanks

    Hi
    for( int i = 0 ; i <= 5 ; i++) {
    IPrivateTestView.ITableElement element = wdContext.nodeTable().createTableElement();
    element.set<TextViewatrribute>("TEXT");
    wdContext.nodeTable().addElement(element);
      error is on 3rd line of code in "element.set "  .The error is   " invalid expression as statement"
    Thanks

  • Want to display "no data Return" message for empty report

    HI all
    I have a requirement where i should show a message saying "No data Returned" under the empty table in the webI report.
    I know that we should use function
    =If(NumberOfRows([Data Provider Name])=0;"NO Data Available")
    I will create a empty cell and include this formula for that cell, but any one please tell me what exactly is the Data Provider Name? Is it the name of the univerese or something else? where can i get the Data provider name?

    Data Provider Name is the name of your query.  By default its name is Query 1.
    =NumberOfRows([Query 1])
    Or you may have changed its name when you edited the query in the query panel, so that's the name you have to use there
    For example:
    =NumberOfRows([My Query])
    If you have a lot of Queries in your report they may be Query 1, Query 2, Query 3 and so.
    Edited by: PadawanGirl on Feb 18, 2011 3:33 PM

  • How can I display a table(with column Header) on the frame(contentPane)?

    (Can dynamically: Insert,remove,modify )
    I have no idea which class I need.

    here's a handy link
    [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]tables
    and look into javax.swing.table.TableModel

  • Define presentation variable in column header

    I want to display presentation variable in column header.
    I tried both:
    @{p_mycategory}{'My category'} Sales
    @{p_mycategory}{My category} Sales
    but failed to display neither p_mycategory value nor the default 'My category'.
    Any ideas?

    I know to add presentation variable in title or narrative text.
    The issue is in chart series name.
    Assuming I want user to select category, which entered to p_categ.
    The lines graph chart should display one line for the selected category and the second line should display the other\total categories.
    In the legend I want to mention the name of the selected cetegory and not saying 'the selected category' or something like that.

  • How to display a Column Header for the characteristic Text column

    Hi All
    Our users want me to provide for a column header for the characteristic text.
    Here is what I mean
    I am reporting 0plant in the rows as key and Text. In the column on Plant Key the column header says Plant but there is no column header for the plant text.
    Eq:
    Plant                                                        Amount
    IE00         Initiator Plant                               244
    IE01         Initiator Plant NJ                          890
    Our users in the plant text column want a dummy column header to be displayed. SInce they download the data from the BW report to Excel and use pivot reporting. How can I introduce a column header for the texts.
    Thanks
    Karen

    Hi Karen,
    I am not sure if this is possible, although Users can ask anything :).
    In Planning we used to predefine cell headings via Macros and creating dummy cells in between.  I am not sure if a similar scenario can work here.
    By default this is not possible in Reports.  In BEx workbooks, you could probably try with Macros.
    Another easy option is to bring the data in the Cube as another field or create a nav. attribute in the master for text and use it as a nav. attr. in the Cube and put it in your Query row alongside.
    -Aby

  • Displaying dates as column headers for BEx Query

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the keyed in date in Bex Query Analyser. I'm able to display date as column heading for one column using text variable with replacement path.I could not able to increment date for other descriptions.Could you please help me to solve this issue.
    Ex: Input Date 05/09/2007 then in the out put column headers should be 0509 0609    0709   ............ 1909
    These are only column headers, values for the columns are quantities calculated using formulas.
    It is urgent.
    Thanks in advance.
    Regards,
    Mandadi.

    hi mandadi,
    if u want dates as headers only then u should use a text variable .
    as a rule u can not set off set for text variable so u create restricted key figure with date restricted and set off set.
    now u use this rkf to populate the text variable using replacement path.
    text variable can use replacement path for replacing from any variable and characteristics.
    bye

  • To display values  in Column Header

    Hi,
    I wanted to display values from viewobject as a column header in af:table
    <af:column sortProperty="Qty" sortable="false"
    headerText="#{bindings.EmpPartHeader12.hints.Qty.label}"
    headerClass="TableNoHeader"
    inlineStyle="background-color:#D3D3D3; border-color:Gray; color:Black;"
    align="right" id="c1">
    <f:facet name="header">
    <af:outputText value="#{row.Qty}" id="ot8"
    />
    </f:facet>
    <af:outputText value="#{row.Cost}" id="ot4"/>
    </af:column>
    I am using <af:outputText value="#{row.Qty}" id="ot8"/> in header class of af:column but getting blank as column header.
    Please help on this.
    Regards
    Vasu

    Hi user13818315,
    Please specify in details what you want to display in column header ? Say there are 5 rows in your table do you want to display the first rows data as column header ?
    Please explain...
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Image in popup window header

    How to Make a image or icon appear in popup window header? I have created a MXML component using TitleWindow.. and i am using it as a pop up.. How do i set titleIcon for the popup?

  • New monitor profile won't stay selected

    I've been using Snow Leopard for 2 years (Mac Mini) and had two different monitors in that time. I just got an Asus VE228 monitor and it was really bright and washed out. So I made a setting that looks good but it won't stay selected after a reboot.

  • Connecting Satellite C660-258 to Smart TV

    I want to be able to connect my laptop to my TV so that I can watch iplayer etc ., as I no longer have Sky, the laptop doesn't an HDMI port so what do I need to successfully connect? Any help would be much appreciated. Linda

  • Still can't get PDF to automatically open in Adobe!!!

    I have read a few other posts about people trying to get/or stop Adobe opening PDFs from safari but I can't seem to get my to open. I would like them to automatically open in Adobe so I can print them out but when i click on them they open in safari

  • How do I watch disk DVD's on iPad?

    I have a few DVD's of my own made using FCP Studio. I have not yet bought an iPad for my wife, she would be more interested if she could watch these on it. Is it possible?