How to show only key in mdx query

Hello Experts
i have mdx query such as :
SELECT
[Measures].MEMBERS ON AXIS(0) ,
NON EMPTY [ZCHANNEL].members
Properties [ZCHANNEL].[2ZCHANNEL]
ON AXIS(1)
FROM ZIC_TPL/ZIC_TPL_DETAIL
SAP VARIABLES
[ZVSOCALM] INCLUDING [0CALMONTH].[200605]
the result from this query are zchannel text and zchannel key
how to show only zchannel key ?
really appreciate your help.
regards
JeiMing
Message was edited by: JeiMing Tjiam

Hi Juice
Yes, i have already tried setting zchannel as key only in my query
but the result from mdx query still shown key and text
Regards
JeiMing

Similar Messages

  • How to get key from MDX Query

    Hi All,
    how to get key from mdx query ?
    example :
    SELECT [Measures].[67822GFASOU7KUT6FKHSQ34FV] ON COLUMNS NON EMPTY CROSSJOIN([ZCOMPANY].MEMBERS, [ZMILL].MEMBERS) ON ROWS FROM ZODS_GL/ZODS_GL_001
    the result from this mdx query are zcompany text and zmill text, how to get company key and mill key ?
    Regards
    JeiMing

    hi Jeiming,
    to get key in mdx, you can try something like
    [ZCOMPANY].[LEVEL01].MEMBERS
    properties [ZCOMPANY].[2ZCOMPANY]
    following threads may useful
    Extracting texts with MDX
    MDX Statement - display only keys for characterstics and their dis. attrib.
    hope this helps.

  • How to show only date in BO webi 3.1 text box

    how to show only date in BO webi 3.1 text box for e.g:-
    01/01/2005  (no time only date)

    hi,
    just check by which format your date is coming
    just create a one variable and check =UserResponse("Transaction Date From (mm/dd/yy)")
    if your output is in format of("mm/dd/yyyy hh:mm:ss a")
    then some format we have to write in todate syntax
    then your final formula for date would be
    =FormatDate(ToDate(UserResponse("Transaction Date From (mm/dd/yy)");"mm/dd/yyyy hh:mm:ss A");"dd/mm/yyyy")

  • 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

  • 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 six values in dropdown box in design studio 1.3

    Hi,
    There was an requirement from our client to show only last six months in the drop down, when actually there is almost past 30 months are coming from the database. The data format also looks similar to "2014007", "2014006:..etc. Any idea to achieve this through loop.?
    Thank You,
    Palani

    Hi Karol,
    I like your idea, but i have difficulties to use it
    i have a datasource DS_2 and i just want to show specific Members of my keyfigures.
    When i fill my dropdown with this code it just gets empty and returns an error. Somehow i have to say if i want to show the Key or Text ?
    i also need this infiormation to be able to compare my elements in the if clause ?!
    Can you help me out ?
    Best regards
    Manfred
    DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0).forEach(function(element, index) {
    DROPDOWN_2.addItem(index, element);
    /*  if ((element == value1) || (expression2 == value2)) {
       if_statements
      } else {
       else_statements
    EDIT ....
    I've found the way how to access the keys and values ... i have to define an array and then i am able to access the internal keys and Text.
    Just for others searching ....
    var ArrayMem = DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0);
    DROPDOWN_2.addItem("#", "No Filter");
    ArrayMem.forEach(function(element, index) {
      if ((element.text == "Anzahl Sätze") || (element.text == "Gepäckgewicht")) {
       DROPDOWN_2.addItem(element.internalKey, element.internalKey + " - " + element.text);
    This SCN article helped me out: http://scn.sap.com/community/businessobjects-design-studio/blog/2014/09/19/learn-about-arrays-in-design-studio-13
    Best regards
    Manfred

  • How to show only one element in drop list(common VO)

    Hi All,
    I'm using 11g adf jdev.
    I have a common view object VO. In this VO one attribute is dropdown list , which i commonly used in some jsf pages .
    Now in one particular jsf page i want show only one element in the dropdown list .
    how can i handle with out distrib'g the common VO.
    THANKS IN ADVANCE

    BTW, why you want to display only one item in the list.
    If you are sure that the list will be having only one item, why don't you have it as inputText/outputText
    How do you filter out the item to be displayed in the list? If that filtering is done on listdatasource bound to the list, the list will automatically show only one item(i.e, the filtered item)
    HTH
    Sireesha

  • How to show only Indexes in Search Scope

    Hi All,
    Is it possbile to allow users to choose only Indexed in search scope.
    I tried editing the Search Options set, there i found that I can enable and disable search scope, but whn search scope is enabled both the Indexes and folders are visible.
    I want to show only Indexes to the user. How can I hide the folder options alone in the search scope?
    Thanks and Regards
    George

    Instead of using the Search Options set in the KM Search iView, use the Search Component Set.
    Create your own Search Component Set by going to <b>System Administration > System Configuration > Knowledge management > Content Management > User Interface > Search > Search Components</b>
    While creating the Search Component Set, Specify <b>Component for Search Options</b> as <u>search_input_indexes</u>.
    This should help you.
    Or you could do the following.
    In the Search Options set, Do the following.
    1) Uncheck <b>Enable Search Scope Selection</b>.
    2) Provide the various index names in <b>Search Index IDs (csv)</b>
    The above option would by default search the selected indexes for the search term and would not provide the user with the functionality of searching in folders.
    Pradeep.

  • How to show only the wanted member in Journals?

    Hi experts,
    I would like to know how i can limit the members of one dimension than can be choose when user creates a journal. I mean, i know that it exists the property Enable_JRN than permit show only member with this property to yes of one dimension.
    But i would like have limitations for the combination of two dimensions, i mean, for example, if i have selected one member of dimension Account with ID 23456, i want to have the possibility of choose ONLY these flows, F99, F30. But for another member of account with ID 07898, only i want show (and then permit) the flow F35.
    Any ideas, about it?
    Thank for your help!!!

    BPC doesn't have a method for this form of dimension combination validation or restriction in the current form.  The only option I can think of is to possibly build a second application that contains the valid combinations, noted by using a single value entered at the valid combination.  Then using the valdation and Journal Script file to check the validity of the combination of the posted value using script logic or defering to an EVDRE that checks the Validation application during a send of data process, instead of using Journals.  We have been requested this behavior in the past to development, but your request as well would be beneficial, via SAP Support.

  • Showing only key photo from events within an album using iphoto 11

    I'm using iphoto 11 and want to show only the key photos from events in an album. I don't want to see every photo from every event in the album, I only want to view the key photos from each event in the album. When I drag the event into the album every photo from each event is shown in the album.
    I do have some events in an album with only the key photo showing but can't get all the events to display this way in the album. Any suggestions?

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How I show only 20 rows per pages in a rtf report in BI Publisher 11g

    I'm making a report and i want show only 20 rows per pages in a formatt RTF. I get this with anything as a xls, xslt....
    I'm a new user....please . Any idea..???
    Thank for all.
    Edited by: 844565 on Mar 15, 2011 7:34 AM

    Instead of doing that take the url CURRENT_SERVER_URL(pre-definde BI Publsiher variable) by declaring like below
    <?param@begin:CURRENT_SERVER_URL?>
    Then subsequently add the extra patameters eg. region like below
    {$CURRENT_SERVER_URL}Data/Country.xdo&p_region={REGION} <- get this REGION value from XML
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies.

  • How to show only legend in graph?

    Is there any way to show only legend in graph? I tried to look in XML of request but I didn't find anything. Please help. :)

    Just add a custom graph with
         <Graph Name='graph' Top='0' Left='0' Visible='False' Evaluation='Yes' Type='Bar' SubType='Basic'>
              <ValueScale Position='Left' MinorFont='Size:10;'/>
              <CategoryScale MinorFont='Size:10;'/>
              <Legend Name='legend_graph' Top='0' Left='0' Width='300' Height='100' Anchor='BottomRight' ZIndex='1'>
                   <Properties AutoSizeMarkers='False' BorderType='Medium' BorderColor='#e5e5e5' UseTransparentFill='False' FillColor='#b999b9' GrowVerticalMaxHeight='64' MinimumFontSize='0' Font='Style:Italic; Color:#4c4c4c;'/>
              </Legend>
         </Graph>see also:
    http://obiee101.blogspot.com/2008/08/obiee-date-time-scatter-graph.html
    regards
    John
    http://obiee101.blogspot.com

  • 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

  • How to show only 10 channels at a time in a Chart

    The pointer slide will show 10 channels on the chart and the array (latest readings) but I'm only able to code the legend to give the channel names. How do you code the legend to give the corresponding waveform color.
    Attachments:
    Graph_mockup.vi ‏60 KB

    Yes I think he might be right. Have you looked at the plot legend this way, in the example below? You can see that the legend DOES give the corresponding waveform color, its just that its not where you want it to be. You may need three different graph (with three different legends) and depending on which chart you need, change the visibility of the graph.
    Lauren
    Attachments:
    Graph_mockup_ver_6.1_Rev.vi ‏59 KB

  • How to fill a Key figure at Query run time

    Hi All,
    I have a requirement where I have to fill a key figure while the query is running. This value is obtained by multiplying 2 attributes of a Material Master Data object.I  could have used Formula Variable but there are two problems -
    1. I have material in my info provider but not this Material Master Data object.
    2. For a particular material, there are multiple rows in the Master Data object. And I have to pick only one row by applying some condition on a field of the MD object.
    Please let me know if there is some way to implement this.

    Hello,
    You can obtain this using virtual KF. Create a KF and include in the cube on which report is built. Dont have any mapping/rule for the same.
    Now write ur code using SMOD and populate this KF during runtime.
    Regds,
    Shashank

Maybe you are looking for