Only show result in query

hi guys, i just want to show the result in my query:
like,
date        1 june  |   2 june  |   3 june  |   4 june |   5 june  |   Result
KF             12    |    10      |      08     |     23    |     43     |       'X'
I just want to show the result and i need to hide all the columns ( eg from June 1 to june 5 ).
I'll really appreciate your help.
Thanks.
PS: i have tried hide in "calculate single values" but values did hide though it shows the columns having blank values.

One way to suppress detail, and just display Result rows is ot use VBA code to hide rows and or columns.  The BEx LEAF KF formula can be used to make it easy to identify Detail vs Result Rows and is one of the ways I use to distinguish which rows to hide, or you could check specific cell values to see if they contain "Result".

Similar Messages

  • A php search engine that only shows results that match entire serch string

    I have set up a dreamweaver search engine through php and a fulltext search (WHERE MATCH (....) AGAINST (...). However, when someone inputs more than one word into the search form, the search engine churns out results that only have one of those words. How do I get it to only show results that have all the search string words inside? (or, at least, how do I get those results to show up at the top?)
    I have seen some advice (here) that uses php code to process the search query, divide up the words, and place a BOOLEAN '+' between each of the words. By doing this, the search engine will only show results that fully match all the terms.
    My problem is that I do not know how to put this code into my Dreamweaver-created code.
    My dreamweaver created code:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $form_rsSearch = "-1";
    if (isset($_get['search'])) {
      $form_rsSearch = $_get['search'];
    mysql_select_db($database_dataConnect, $dataConnect);
    $query_rsSearch = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH (title, content) AGAINST (%s)", GetSQLValueString($form_rsSearch, "text"));
    $rsSearch = mysql_query($query_rsSearch, $dataConnect) or die(mysql_error());
    $row_rsSearch = mysql_fetch_assoc($rsSearch);
    $totalRows_rsSearch = mysql_num_rows($rsSearch);
    $input_rsSearchResults = "-1";
    if (isset($_GET['search'])) {
      $input_rsSearchResults = $_GET['search'];
    mysql_select_db($database_EMdataConnect, $dataConnect);
    $query_rsSearchResults = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH(title, content) AGAINST(%s)", GetSQLValueString($input_rsSearchResults, "text"));
    $rsSearchResults = mysql_query($query_rsSearchResults, $dataConnect) or die(mysql_error());
    $row_rsSearchResults = mysql_fetch_assoc($rsSearchResults);
    ?>
    and the code the website (link above) gives is:
    function search(String $search_string) {
         //strip Boolean search characters out of search string
         $search_string = string_replace($search_string,"+","");
         $search_string = string_replace($search_string,"-","");
         $search_string = string_replace($search_string,"*","");
         //split the search string up into an array of words
         Array $tokenized_search = split($search_string, " ");
         //init an empty final search string
         String $processed_search = "";
         //for each word in the search, wrap it
         //with an + and * character and then append
         //it to the processed_search variable
         foreach($tokenized_search as $token) {
              $processed_search+="+"+$token+"* ";
         //build the sql for the query and query the DB
         String $db_query = "select id, description
              from product_descriptions
              where MATCH(description)
              AGAINST ('"+$processed_search+"' IN BOOLEAN MODE)";
         Array results = execute_database_query($db_query);
         return results;
    If anyone can instruct me on the correct way to go about this, I would be very much obliged.
    Thank you,
    YWSW

    Don't use the Search bar, type the address in the Location bar.

  • Spotlight only showing results of 1 partition

    I skipped lion and went from Snow Leopard to Mountain Lion. I am using a 1tb External HD. If I type "screen shot" into spotlight, it only shows the files on 1 of the partitions (there are 4 partitions on the drive) The one thing I noticed is that if I open a file from one of the other partitions, after doing so, that file will now also show up in spotlight. So to sum it up, spotlight only shows files from 1 partition, and files from the other partitions I've opened since I updated to Mountain Lion
    Any Ideas?

    Re-index SpotLight
    go into disk utility, select your OS X hard drive, click "repair disk permission". wait until it's done.
    after that, go into terminal and type copy & paste:
    sudo mdutil -E /
    after that, terminal will prompt you for your password. type it in (no letters will actually appear but just type your password and press enter).
    your spotlight index should then be recreated.

  • Show only overall result in query

    Hi Experts,
    I have a problem with a web template that I cannot seem to resolve.  I have a query with calculated key figures and the overall result is calculated as an average so that I can determine percentages etc.  It is only the overall result that my customer wants to see.  However if I remove the sales doc characteristic then the overall result is also lost.  The query needs sales doc to get the correct result, but then the user has to scroll to the bottom each time to see what he wants to see.
    So my question is, how can I make the query/web template display only the overall result line without taking out sales doc and losing each line?
    Many thanks in advance.
    Sean.

    Hi Sean,
    From what I could understand ,you can try the following.
    Since you want the average of a calculated key figure with respect to Sales doc  ,u can set the property of the calculated key figure as aggregation = average.
    and referance characteristic as 'sales Doc'
    Hope this helps.
    Varada

  • "SUM" keyword does not show results in query manager

    Im using the sql keyword sum in my query which displays sum of doctotal for all sales order created by a particular sales employee.. but it is just showing the doctotal row wise. Is there sum limitations on the sql syntax that can be used?
    Also is it possible to show the sum of doctotals without callin it at row level,as we are printing redundant data. Im not using PLD as the requirement is just to show the result of the query.
    Please help
    Regards
    Aris

    Try the query as
    select sum(t.total) from
    SELECT T0.DocNum, T0.DocTotal,T0.DocTotal - T0.VatSum, T0.DocDate, Sum(T0.DocTotal) as Total,Sum(T0.DocTotal - T0.VatSum) as withoutTax FROM ORDR T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T1.SlpName ='Rajesh Nair' and T1.SlpCode -1
    GROUP BY T0.DocNum, T0.DocDate, T0.VatSum, T0.DocTotal
    ) t
    or in one query at the end as sum as
    SELECT T0.DocNum, T0.DocTotal,T0.DocTotal - T0.VatSum, T0.DocDate, Sum(T0.DocTotal) as Total,Sum(T0.DocTotal - T0.VatSum) as withoutTax FROM ORDR T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T1.SlpName ='Rajesh Nair' and T1.SlpCode -1
    GROUP BY T0.DocNum, T0.DocDate, T0.VatSum, T0.DocTotal
    UNION
    select null, null, null, null, sum(t.total), null from
    SELECT T0.DocNum, T0.DocTotal,T0.DocTotal - T0.VatSum, T0.DocDate, Sum(T0.DocTotal) as Total,Sum(T0.DocTotal - T0.VatSum) as withoutTax FROM ORDR T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T1.SlpName ='Rajesh Nair' and T1.SlpCode -1
    GROUP BY T0.DocNum, T0.DocDate, T0.VatSum, T0.DocTotal
    ) t

  • Only show subtotals (hide detail records)

    Hey,
    I have a very special 'need'. I hope I can explain myself.
    In short: I have a query and I only want to see the subtotals.
    I have a DSO with the following relevant fields.
    CITY, DATE, ORDERNR, CONSTANT, COUNT (= 1 for every order)
    In my rows I add CITY and DATE
    In my columns, I add
    - KF:   COUNT
    - CKF: TOTAL --> SUMCT(COUNT)
    - CKF: CALC  --> COUNT/TOTAL*CONSTANT
    CALC in words: The number of orders a day, divided by the total number of orders of a city, multiplied by a constant.
    I want a report that shows for every CITY the cfk CALC.
    So for every city the sum of CALC values.
    So I want to lose the division by DATE. However, when I remove DATE from the rows, my TOTAL isn't right anymore. Beacause I need subtotals for every DATE, If i drop the date my TOTAL is the overall total.
    So I was hoping there is a way to hide the detail lines, so that only my subtotals are visible. Something like the collapse of an ALV report.
    Any other suggestions are appreciated.
    Steven
    Message was edited by:
            Steven Dierick

    One way that we have done this in the past is to use a VBA macro to hide all rows where the value <> "Results", then hide the column that only shows "Result". You can use the Tools -> Macro -> Record New Macro function in Excel to get pretty close to the code needed for this.
    Hope this helps...
    Bob

  • Outlook 2013 Advances search only shows cached emails

    Hi all,
    We have rolled out Outlook 2013 with cache mode on, we have set caching to only one month of data. We are using Outlook 365 as our exchange server.
    Quick search works as it should and shows all the results. However, advanced find only shows results from the cached emails. IE nothing older than a month. I have run a re-index etc but still have had no joy. Is there something I am missing?
    Thanks

    Just wanted to say hi and check if there is anything that I can do for you on this problem.If
    so, please do not hesitate to let me know and I will be happy to help.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • How to show only the result of a query

    Hi experts,
    i need to show only the result of a query (hiding all the rows)
    according to mathematical functions like sum, average, count ets. i need the result to be shown widhwise the query (Horizontal)
    thanks a lot
    Nir

    Hi
    I did get exactly.....but if i m right then you can do this by selecting the keyfigure goto the calculation tab select calculate result as sum or whatever you want to use.
    Regards
    Lalit k Tyagi

  • How to show only the result line of a Query result ?

    Hi Experts,
    I want to show only the result line of the Query. Is this possible in query Designer ?
    In BeX Workbook, I can hide the rows but they grow or shrink dynamically and hence it is unpredictable how many rows to suppress.
    If you have any solutions/workarounds, please reply !
    Rekha

    VBA coding can be used to display just the Result rows.
    Somthing like this - modify as needed.
    This scans the range of query results looking to find the last row, then checks those rows to see if the word Result is found or not, deleting (or you could just hide) the detail rows.  There is also a LEAF option in BEx Boolean options that returns a 1 or 0 depending on whether a row is a detail or result that could also be used to hide rows rather than looking for the presence of "Result" in a particular column
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    For rownum = 17 To 64000 Step 1
    ' col 2 is the Total Result, col 3 is the User Group result
    If Cells(rownum, 2) = "" And Cells(rownum, 3) = "" Then
    lastrow = rownum - 1
    Exit For
    End If
    Next
    For rownum = lastrow To 17 Step -1
    If Cells(rownum, 2) = "Result" Or Cells(rownum, 3) = "Result" Then
    Rows(rownum).Hidden = False
    Else
    ' Rows(rownum).Hidden = True
    Rows(rownum).EntireRow.Delete
    End If
    Next
    End Sub

  • Creating Query with dynamic columns to show results

    Hi experts,
    I need to know how to create a query with dynamic columns. Meaning, I don't want to create a query with fixed columns representing the 12 periods of the fiscal year to show me actuals as the fiscal year proceeds.
    For example, if I am currently in the middle of period 3 (March) of a fiscal year, when I execute the query, I need it to automatically only show me the 'Actuals' for periods 1 and 2, without seeing the columns from periods 3 to 12 showing blank.
    Then when I am in the middle period 5 (May) the query should ONLY show me the columns for periods 1 to 4 'Actuals', no results should be shown for periods 5 to 12 yet, and I don't want to even see blank columns for period 6 to 12.
    How do I define my columns, to achieve this.
    Maximum points will be awarded.
    Thanks Everyone.

    Hi Josh,
    I'm having a little difficuluty understanding what should be included in my restricted key figures.
    The time characteristics that I have available to use are:
    0FISCPER3 (posting period)
    0FISCYEAR (fiscal year), currently using SAP EXIT to default current fiscal year.
    0FISCVARNT (fiscal year variant).
    In addition, I have the following characteristics available to be used in the columns:
    Value type (10)
    version (currently I'm using variable for it)
    Currency type (020)
    Currency (USD).
    Can you explain what my restricted key figure should be based on and how it should look.
    I tried to create a restircted key figure using 0AMOUNT, and 0FISCPER3. For 0FISCPER3  I created a range from 1 to previous period (using SAP EXIT that supplied previous period).I also had value type, version, currency type, and currency included in that restricted key figure.Then when I tried to drag 0FISCPER3 under the restricted key figure once again, it wouldn't let me, probably because I've already used 0FISCPER3 in the restricted key figure.
    Please let me know if my explanation is not clear.
    Your step by step help would be great.
    Thanks
    Edited by: Ehab Mansour on Sep 23, 2008 2:40 PM

  • Report from SQL Query -Excel format only show the first page

    Hi,
    I have some Reports from SQL Query. In the display options, I choose Excel as default format. The Excel documents only show the first page. If I choose HTML as default format, it shows every rows.
    Please advise on how to have a complete Excel document as HTML format does.
    Thanks a lot.
    Lina Han

    I beleive when you export Oracle reports to Excel it is the Data that is transferred along with Column Names.
    You cannot export the variables defined on the report.
    Hence you will not be able to export the Footer to excel. (Still looking into it will let you know if i find anything interesting)
    Regards,
    Bhushan Salgar

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
    Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
    thanks very much in addvance.

    Hi,
    ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
    Regards,

  • Results web part showing results before search query is typed in search box

    2 part question
    I am creating a wiki site in which the home page has a search box web part, and a results web part.  I have the search box configured to return the results to the results web part.  I created a result source and changed the query on the results
    web part to use this results source.  I am getting results from the library I am trying to, but...
    1) The results web part is showing results when the page is loaded before any query is typed into the search bar.  Why is this and can it be configured to just be blank until a query is entered into the search bar?
    2) Is it possible to have 1 search box and 1 results part have 2 different scope choices?  ie, 1 scope for the wiki library and 1 for a document library?
    Thank you.

    So I have to have 2 different search result web parts to have 2 different scopes if I wish to have the search and results occur on the same page? Would I also have to have 2 search boxes?
    Also, I am trying to figure out this issue where results are being returned without anything being entered in the search box.  I have {searchterms?} in my query, and documentation suggests this to be the way to handle this issue, but I continue to get
    results shown in the results web part without even entering a search query.  Please assist.

  • Strange TREX behavior: Document search only shows 15 results

    Hi.
    I've one TREX implementation. It's connected to a SAP eLearning repository in a Portal and no matter what search criteria I use, it always returns me a list of 15 found resutls!
    It's always the same number, for different searchs, and of course I've checked that there are more than 15 right resutls, so it looks to me like a parameter restriction or something like this, but I still havent found it.
    Do any of you know what could be causing this??
    Any help would be really really appreciated.
    Thanks in advance and regards!!!

    Hi Armando,
    the reason that the portal shows every time only 15 results can depend on the used KM Layout Set.
    Within the KM layout Set which is assigned to the search result iView you can specify the number of rows and whether a page link sould appear or not.
    Normally the default Layout Set should work properly.
    But you can as well use the search command in the standalone tool TREX-Admin. Here you can see the number of results as well.
    Best regards
    Frank

  • Refining a query to only show entries for the current week

    Hello.
    Does anyone know how to modify a query to only show records that have dates in the current week? Records have a start date and a finish date so the query should recognise that an entry may be valid for more than one week?
    Kind Regards,
    swelch

    Assuming week ends on a saturday and dates aren't NULL - change as appropriate - this is one way
    All rows....
    SELECT TO_CHAR (begin_date, 'DD-Mon-YYYY HH24:MI:SS') AS begin_date
    , TO_CHAR (end_date, 'DD-Mon-YYYY HH24:MI:SS') AS end_date
    FROM mydates
    ORDER BY begin_date;
    BEGIN_DATE,END_DATE
    05-Jul-2011 06:49:25,15-Jul-2011 06:49:25
    05-Jun-2011 06:48:57,15-Jun-2011 06:48:57
    15-Jun-2011 06:48:29,25-Jun-2011 06:48:29
    25-Jun-2011 06:47:57,05-Jul-2011 06:47:57
    Current week rows....
    SELECT TO_CHAR (begin_date, 'DD-Mon-YYYY HH24:MI:SS') AS begin_date,
    TO_CHAR (end_date, 'DD-Mon-YYYY HH24:MI:SS') AS end_date
    FROM mydates
    WHERE TRUNC (begin_date) < NEXT_DAY (TRUNC (SYSDATE) - 1, 'Sat') + 1
    AND TRUNC (end_date) > NEXT_DAY (TRUNC (SYSDATE) - 1, 'Sat') - 7
    ORDER BY begin_date
    BEGIN_DATE,END_DATE
    15-Jun-2011 06:48:29,25-Jun-2011 06:48:29
    25-Jun-2011 06:47:57,05-Jul-2011 06:47:57
    Edited by: Robert Chalton on 25-Jun-2011 07:01

Maybe you are looking for

  • Optical or analog cable for connecting Macbook 1,1 to Sony Bravia

    Hello I have found a mini-DVI to HDMI adapter (plus HDMI cable) to take the video  from a Macbook 1,1 (all white) to a Sony Bravia TV. Now I need to find the right cable to carry the audio from the Macbook to the Sony Bravia. The Macbook has an optic

  • B2B Inbound Error - sender mail adapter - SMTP

    Boa tarde Estou tendo um erro quando tento ler uma caixa de e-mail via scenario B2B inbound utilizando sender adapter mail (SMTP) estou passando as seguintes informações no adapter sender : Transport Protocol: POP3 Message Protocol: XIPAYLOAD URL :sm

  • DVD won't play since upgrade to iDVD6

    I have used iDVD5 for 3 years to create DVDs (with videos edited in Final Cut) and these DVD would play in my portable TV/DVD combo and in my home DVD player. I recently upgraded to iLife06 which upgraded my iDVD to iDVD to 6.03. Now, when I burn a D

  • Which slot should I install my Blackmagic Intensity Pro PCIe card?

    Hi there, I just purchased myself a Blackmagic Design Intensity Pro capture card. It's a x1 lane PCIe card and according to the manual, it should work in any PCIe slot on the Mac Pro. However, in the readme file, it states, "If using a Mac Pro, it is

  • Problem with a Try/catch exception

    Hello everyone here on the forums. I'm brand new to Java and have a bit of a problem with a try catch statement I'm making. In the following code if a user enters a non-integer number the program will display "Sorry, incompatible data." Problem is it