How to concatenate Member_caption in different level using mdx

hi I am using the mdx below to get the list of ParameterCaption which will be used to populate a dropdown list inside SSRS
WITH MEMBER [Measures].[ParameterCaption]  AS [Checkoutdate].[Year-Week].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[ParameterValue] AS  [Checkoutdate].[Year-Week].CURRENTMEMBER.UNIQUENAME
MEMBER [Measures].[ParameterLevel] AS [Checkoutdate].[Year-Week].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , 
[Checkoutdate].[Year-Week].ALLMEMBERS on ROWS
FROM [OrderCube]
The result is below:
ParameterCaption      ParameterValue
ParameterLevel
All [Checkoutdate].[Year-Week].[All]
0
2008 [Checkoutdate].[Year-Week].[Year].&[2008]
1
23 [Checkoutdate].[Year-Week].[Week Of Year].&[23]&[2008]
2
24 [Checkoutdate].[Year-Week].[Week Of Year].&[24]&[2008]
2
25 [Checkoutdate].[Year-Week].[Week Of Year].&[25]&[2008]
2
26 [Checkoutdate].[Year-Week].[Week Of Year].&[26]&[2008]
2
27 [Checkoutdate].[Year-Week].[Week Of Year].&[27]&[2008]
2
28 [Checkoutdate].[Year-Week].[Week Of Year].&[28]&[2008]
2
1. What I wanna do is to remove ALL from the ParameterCaption
2. I want to concatenate Year to Week so that dropdown list will show 200823 instead of 23 for the week 23 in 2008. Notice
that Year and week are in different Parameter Level...  
3. After concatenation, I only want to show ParameterCaption with ParameterLevel = 2 in the dropdownlist.
Any ideas? thanks 
--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Hi Cat_ca,
In your query, you use [Checkoutdate].[Year-Week].ALLMEMBERS on ROWS which will return all levels members, so you get All level. In order to remove All and only show Parameter Caption with Parameter Level = 2 in the dropdown-list, you can use the query [Checkoutdate].[Year-Week].[Week
Of Year].MEMBERS
Besides, you want to concatenate Year to Week so that dropdown list will show 200823 instead of 23 for the week 23 in 2008, then you can use the calculation like below.WITH MEMBER [Measures].[YearWeek]
AS
[Checkoutdate].[Year-Week].CURRENTMEMBER.PARENT.NAME+[Checkoutdate].[Year-Week].CURRENTMEMBER.NAME
So in your scenario, please try the query below.
WITH MEMBER [Measures].[YearWeek]
AS
[Checkoutdate].[Year-Week].CURRENTMEMBER.PARENT.NAME+[Checkoutdate].[Year-Week].CURRENTMEMBER.NAME
MEMBER [Measures].[ParameterLevel]
AS
[Checkoutdate].[Year-Week].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[YearWeek],[Measures].[ParameterLevel]} ON 0,
[Checkoutdate].[Year-Week].[Week Of Year].MEMBERS ON 1
FROM
[OrderCube]
Hope this helps.
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support

Similar Messages

  • How service Provider Provide MPLS different level of Class of Service!!!

    Hi Team,
    Most of the time Service provider says that they can provide any class of service and any level (CoS1 to N)...On a global setup, how Service Provider Core is being provisioned to provide this kind of scalability and redundancy...I am interested in mainly the core Cloud of Service provider not the PE...Any docs or link will be of gr8 help...Service provider will no away running 50% of their capacity and provide redundancy..So there should be some tweking which allow them to Provide different level of SLA..How need to know..
    Thanks in advance..
    With best regards,
    Mani

    1) Irrespective of how many ever COS they are providing/selling for the Customer at the Edge most SP will have only 4 to 5 major classes in the core, and the SLA provided on DSCP,COS,PREC are merged into these super classes where they map to.
    2) The question of BW of 50% this is subjective to each SP, just like you have a pipe of 1 gig for Internet in what ratio would you sell this BW is subjective to each SP. SImilarly when you provide SLA with certain guranteed uptime, the bandwdith availability during backup is considered and the its generally sold in the same ratio.
    If the ratio at which the BW is sold at the edge, exceeds the available 50% during failure, then olny your upper higher priority classes get tranmistted. But this is seldom recommended.
    HTH-Cheers,
    Swaroop

  • How to performing calculations at workbook level using using VB / macros et

    HI All,
    I want to know about how to perform calculations at the work book level using VB/Macros..
    Request provide me links related to this .
    Manyt hanks in advance.

    Hi,
    Open the Excel workbook and press ALT + F11. VB editor opens and you can write your piece of code and name it as Auto_open if you need that macro to automatically run when you open excel.
    Second option is record macro, which will record the calculation and then call this macro everytime you need.
    Thanks,
    Tintu

  • How to set white point in "Levels" - using a different photo

    Hello all,
    I'm taking shots of some furniture I made.  I get the shot all set up and the exposure correct for what I want, then I take an 'extra' shot with a gray and a white calibration card in the scene.  Now I have two identical shots except that one has the calibration cards.  My question is: how to I select the white (and gray) levels from the calibration shot and then use that data to set the white (and gray) levels in the good shot.  I had done this many years ago in CS3, but I don't remember the process.  Any help is appreciated.
    Thanks,
    Kevin H.

    Kevin,
    this is one possible workflow:
    Using the image with card:
    Image > Mode > Lab
    Layer > New Adjustment Layer > Curves
    Apply changes as required for the card (neutralization)
    Save As *.acv
    Then apply this file to the photo without card.
    If required convert Lab to RGB.
    How to apply a complete color correction for reproduction:
    http://www.fho-emden.de/~hoffmann/camcal17122006.pdf
    Best regards --Gernot Hoffmann
    Language problem:
    Is a ColorChecker a card or a chart?
    Edited:
    According to
    http://en.wikipedia.org/wiki/ColorChecker
    it's a chart
    Edited:
    Curves is much more effective than Levels.

  • How to access mail if different users use same email - sent, trash, etc, are not the same in both user's thunderbird. How do I fix that?

    I have different users on my computer, me, spouse, etc. We share the same email. I have thunderbird loaded correctly in one account. In the other account it only grabs the inbox messages, not the sent messages. How do I get it so both thunderbirds work in both accounts on the same computer? Right now I need to switch user to view the sent emails that are sent from the other account.

    IMAP will sync messages, but if your sharing on a single computer you would probably be better off sharing the same profile. It is not as if you will both be using it at the same time. The information in this link should help with that.
    http://kb.mozillazine.org/Moving_your_profile_folder_-_Thunderbird

  • How to Select Data from different Tables Using Linq

    Hi,
    I have two different tables, I just want to collect data from tables using Linq to SQL Queries.
    The tables looks like This 
    ID Name ImageUrl 
    Other Table is
    ID EmpID CheckInTime CheckOutTime 
    What I want to Collect data from CheckInTime and want to place it in a that is in a list view
    Same thing I want to do it for CheckOutTime And One thing I want to tell is both tables are joined by a FK EmpID with ID.
    What Are the suggestions for me 
    I have Used this code
    var data = from emp in db.Employees
    join chk in db.CheckInCheckOuts on emp.ID equals chk.EmpID
    select new EmployeeCheckInOut
    Name = emp.Name,
    ImageUrl = emp.ImageUrl,
    CheckIn = emp.CheckInCheckOuts,
    CheckOut = emp.CheckInCheckOuts
    Here the CheckInCheckOuts is another table, I don't how do I access fields of the Other table "CheckInCheckOuts"
    Thank you
    Ali

    Mitja,
    Kind of Tables, I don't Know but I can Tell you that these are Two table, first Table Have Data in It, Name, ImageUrl I have filled this table with names and ImageUrls And are string type.Other Table is for the CheckInTime And CheckOutTime of the employee.
    What I need that when I click on the Image button it Should displays The Current Datetime into the label below the Image button.
    So I have Problem accessing my CheckInCheckOut Table because I may not have Idea about.Did you understand what I need to do, if you have more question please ask to me.
    Thanks
    Ali

  • How to get listitems from different lists using Js

    Hi,
    I want to search my web for all the lists that contains a certain checkbox column (get it by name).
    Once I have this list, I want to iterate through all of them and get the list items with this column checked.
    I got the lists, but when I tried to get the fields - I got an error - the system doesn't recognizes the fields.
    To be more specific - in the code I've posted below in method onGetFieldsSuccess I'm getting an error in the first line, as I can't retrieve the enumerator.
    In the MSDN I saw how to retrieve list's fields, but there it was a specific list. Is there a way to get the lists who have a specific field?
    Any help will be appreciated
    <script> 
    ExecuteOrDelayUntilScriptLoaded(showFavorites, "sp.js"); 
    var ctx;
    var lists;
    function showFavorites()
         ctx = new SP.ClientContext.get_current();
         var web = ctx.get_site().openWeb("/legal");
         ctx.load(web);
         lists = ctx.get_site().openWeb("/legal").get_lists();
         ctx.load(lists);
         ctx.executeQueryAsync(Function.createDelegate(this, this.onGetListSuccess), Function.createDelegate(this, this.onFail));
    var list;
    var fields;
    function onGetListSuccess(sender, args) {
              var listEnumerator = lists.getEnumerator();
              while (listEnumerator.moveNext()) {
                   list = listEnumerator.get_current();
                   ctx.load(list);
                   fields = list.get_fields();
                    ctx.load(fields , 'Include(Title)');
                   ctx.executeQueryAsync(Function.createDelegate(this, this.onGetFieldsSuccess), Function.createDelegate(this, this.onFail));
    function onGetFieldsSuccess(sender, args)
          var fieldEnumerator = fields.getEnumerator();
        while (fieldEnumerator.moveNext()) {
            var field = fieldEnumerator.get_current();
            var name = field.get_staticName();
            if (name == "MyFavorite") {
                alert(list.get_title()); 
                break;
    function onFail(sender, args) {
        console.log(args.get_message());
    </script>​​​​​​​​​​​​​​​​​​​​​​​​​

    Thanks a lot Thriggle,
    I've used your advise, and other then some syntax problems (as you predicted :) everything worked just fine!
    (I had to add another executeQueryAsync to get the listItems files - but that wasn't a problem).
    The only issue that I have is that it takes FOREVER to load, and once it does load - it returns duplicates of the same results (sometimes 3, sometime up to 10).
    I only have 13 tables with about 50 list items in each table, and from that only 6 tables have the specified field - so it shouldn't have taken THAT long (sometimes I see the results after 45 seconds after the page finished loading).
    should I have used a new client context for each query? or is there a place where I'm getting unnecessary loops (I've made sure that I have only 1 list item that matches the 
    I'm resending the complete code. maybe there's something I've missed here.
    <cfheader name="X-XSS-Protection" value="0"></cfheader>​​​​​ ​​​<script>
    ExecuteOrDelayUntilScriptLoaded(showFavorites, "sp.js"); 
    function showFavorites()
         var displayTable = document.getElementById("myFavoritesTable");
         for(var i = displayTable.rows.length - 1; i > 0; i--)
                displayTable.deleteRow(i);
       var fieldToLookFor = "MyFavorite";
         var ctx = new SP.ClientContext.get_current();
         var web = ctx.get_site().openWeb("/legal");
         var lists = web.get_lists();
         ctx.load(web);
         ctx.load(lists, 'Include(Title,Fields)');
         ctx.executeQueryAsync(Function.createDelegate(this, function(){
         var matchingLists = [];
         var listEnum = lists.getEnumerator();
         while(listEnum.moveNext()){
              var currList = listEnum.get_current();
              var containsField = false;
              var fields = currList.get_fields();
              var fieldEnum = fields.getEnumerator();
              while(fieldEnum.moveNext()){
                   if(fieldEnum.get_current().get_staticName() == fieldToLookFor){ containsField = true; break;}
              if(containsField){
                  matchingLists.push(currList.get_title());            
         //alert(matchingLists);
         var i = 0;
         while(i < matchingLists.length){
              var list = lists.getByTitle(matchingLists[i]);
              i++;
              var camlQuery = new SP.CamlQuery();
              var camlString = '<View><Query><FieldRef Name=\'' + fieldToLookFor + '\' /><Value Type=\'Integer\'>1</Value></Query></View>';
              camlQuery.set_viewXml(camlString);
              var items = list.getItems(camlQuery);
              ctx.load(items);
              ctx.executeQueryAsync(Function.createDelegate(this,function(){
                   var itemEnum = items.getEnumerator();
                   while(itemEnum.moveNext()){
                        var item = itemEnum.get_current();
                        var file = item.get_file();
                        ctx.load(file);
                        ctx.executeQueryAsync(Function.createDelegate(this,function(){
                        var table = document.getElementById("myFavoritesTable");
    // Create an empty <tr> element and add it to the 1st position of the table:
    var row = table.insertRow(-1);
    // Insert new cells (<td> elements) at the 1st and 2nd position of the "new" <tr> element:
    var cell1 = row.insertCell(0);
    var cell2 = row.insertCell(1);
    var cell3 = row.insertCell(2);
    var cell4 = row.insertCell(3);
    cell1.innerHTML = "XX";
    cell2.innerHTML = item.get_id();
    cell3.innerHTML = "<a href='" + item.get_file().get_serverRelativeUrl() + "' alt=''>" + item.get_file().get_name() + "</a>" ;
    cell4.innerHTML = "";
                     }),Function.createDelegate(this,function(sender, args){
                  alert(args.get_message());
              }),Function.createDelegate(this,function(sender, args){
                  alert(args.get_message());
    }), Function.createDelegate(this, function(sender, args){ 
         alert(args.get_message()); 
    </script>​​​​​ 
    <table id="myFavoritesTable">
       <tbody> 
          <tr valign="top" class="ms-viewheadertr"> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">שם טבלה 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> </td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">ID 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> </td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">כותרת 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> </td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">מסמך ​ 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> ​​​​​​​</td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
          </tr>
       </tbody> 
    </table>​ 
    <p>​​​​​​​​​</p>

  • How to attach documents at record level using GOS?

    Hi Guys,
    I have been using GOS for some time now and i am using GOS to attach documents at transaction level.
    Now i need to design a utility where the user would first run a report and this report will bring a few records and the output should have an option to attach some PDF files for each record. Is this possible using GOS? Is there any other simple way to attach documents @ record level and not at transaction level? Any pointers??
    Cheers
    VJ

    two options:
    1. you want to upload document/view document from your report only.
    In this case
    a. go to transaction SBDSV1
    c. class name = "any name you desire without spaces"
       class type = "other objects"
       all other parameters copy from any other objects.
    once this is done, in your program call fm
    call function 'SWU_OBJECT_PUBLISH'
        exporting
          objtype           = 'class name created in stepc'
          objkey            = 'concatenated devlierynumber item number variable'
        exceptions
          objtype_not_found = 1
          others            = 2.
    this will bring up the icon for uploading document in the top left corner of your report. (call it after start of selection)
    to manually test this process , go to transaction OAOR and use class name, type =OT and the key to view or upload the file.
    2. you want to upload/view document from shipment document transaction.
    in this case, you need to find the appropriate BO from SWo1 transaction  which has go delivery number /item number as the key (for example look at BO LIPS from SWO1)
    once this is done you can call the FM mentioned in the previous option by passing the classname and the delivery doc key. the upload/view can alos be done from the standard transaction for that document.
    Hope this is clear.
    Regards
    Raja

  • How to total amounts from different categories using pop-up menus?

    I am working on personal financing using Numbers for the first time. I have formated the "Category" cells in the "Transactions" table to be pop-up. Meaning ... I click on the cell and select the appropriate category (Bills, loans, grocery, eating out, etc.) How do I get the amount that I've entered for certain categories to populate into the "Acount Categories" table? Ex -- Moving $1.06 from the "Transactions" table to the "Account Categories" table. Eventually, there will be multiple entries for each category and I want a total to show up in the upper table which I have already formated to turn into a pie chart. Thanks.

    Hi smessen,
    The formula in cell B2 of Account categories was originally: =SUMIF(Transactions :: $D,A2,Transactions :: E)
    You have apparently deleted column A of Transactions, so the formula needs revision to accomodate that change.
    Account Categories::B2: =SUMIF(Transactions :: $C,A2,Transactions :: D)
    Fill the formula down to B9.
    Items in the list in column A of Account Categories must exactly match those in the list in the pop-up menu cells in column C of Transactions. Remember to include "Deposit" in the menus to mark an amount that will not be included in the Account Categories table. You can also include a menu item such as "Choose", "-" or " " (single space) to use as the default value for unused rows.
    Regards,
    Barry

  • Pages 5.2 How do I change the indent level used by the indent icon in the toolbar?

    I'd like to use the INDENT and OUTDENT icons in the Pages (5.2) toolbar.   They seem to default to 0.5 inches.   I would to change that but I cant' figure it out.
    I can accomplish what I want by going to "Style / Bullets & Lists / None / Indent - text.   I make that the inches I prefer - such as 0.25 etc.
    Is there a way to change the indent spacing used by the Indent (and Outdent) icons in the Toolbar?
    Thanks
    Rick Conklin
    Wichita, KS

    Mr. VikingOS
    Sorry, the above instruction changes the "first line" indent.   You can confirm this by going to "format / indents / first."
    That's not the same as the paragraph indent - which is what the Indent icons do.
    I just want a way to alter the distance used by those icons.
    Anybody else?
    Bueller?   Bueller?

  • How to Concatenate Date in T-SQL using custom format?

    Hi:
    I have a column in SQL Server 2008 R2, [ENTERED_DATE].  This is a datetime, formatted like so:
    2011-01-25 07:32:21.000
    I need to display this as:  2011-01-01, where the DAY always = 01.
    I've tried all manner of CAST, CONVERT, concatenate, etc.
    I don't really want to CONVERT from datetime, just display in a custom format.
    Thanks!
    A. Wolf

    SQL Server 2012...
    SELECT FORMAT(getdate(), 'yyyy-MM-01')
    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

  • How can i set page zoom level using css and javascript in firefox.

    i have problem to set zoom level in firefox.
    document.body.style.zoom = 150%; is worked in IE and Crome but not working in firefox so pls. i want to know a alise property that are provide a same functionality to me.

    Currently there is now way of retaining zoom level across pages in Single Page Mode. We have noted down your request and this might get implemented in one of  our future releases. Thanks for the feedback.
    - Adobe Reader Team

  • Measuring signals with different levels using common AI in Fieldpoint

    Hi!,
    I am trying to configure a Fieldpoint system to measure the following (its for a DC motor test station):
    Motor Voltage: 0-240 VDC
    Motor Current: 0-50 ADC
    Generator Voltage and Current: same as for motor
    Options which come to my mind are:
    1) Convert the voltages into 0-10 VDC and use FP-AI-110
    and simultaneously convert currents into 4-20mA and use FP-AI-111.
    2) Convert both voltages and current into 4-20mA and use only FP-AI-111
    My questions:
    1) Which is a smarter config?
    2) Would there be any issues of isolation that I need to consider?
    Note:
    A) There are other measurements like thermocouple and counter and I will be using the signal specific modules for those.
    B
    ) It is important that total system hardware cost be kept to the minimum.
    Platform is Fieldpoint using FP-1601
    OS is Win200
    Coding is in NI-PDS-6.1
    Thanks and best regards,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hello Gurdas,
    You could use the FP-AI-110 to measure both your voltage and current signals. However, you will need to create an attenuation circuit so that you can measure your signal in the 0-10VDC range as you have described. You can also use a current shunt resistor to measure the current by running the current through this resistor and then measure the voltage across it. You will most likely need a resistor near 0.01Ohms that can handle up to 50A. (50^2*0.01)= 25W. That is a big resistor.
    It would still be best to convert both to voltages since the modules measure voltage. Even the FP-AI-111 uses current shunts and measures a voltage.
    Another thing to know about taking motor measurements is Flyback voltages generated from the coils. These v
    oltages can reach several thousand volts and could damage your hardware. Check to make sure that you motor or motor drive has circuitry to limit flyback voltages. Zener diodes are commonly used to limit flyback voltages.
    Regards,
    Bill B
    Applications Engineer
    National Instruments

  • Not able to display data in different columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.

    Hi Venkat,
    After extracting data into DSO check the request whether active or not.
    Check data in DSO in contents.
    If is there any restrictions on info providers in Queries.
    Let us know status clearly.......
    Reg
    Pra

  • Reporting at different levels in a Hierarchy

    Hi,
    How can I report at different levels within a hierarchy? Currently within SAP and BW I have levels 1 to 7, however currently I have to go through level 1 to see any information.
    Please let me know, any help much appreciated
    Thanks
    Bhav

    Hi Riccardo,
    How can I create variables for selecting nodes of the hier?
    I can bring in the hierarchy, but any variables i create only allow me to select different hierarchies.
    What I am trying to do is create a report to run for level/ node 1 of 7 (the top level), this would allow users to expand if necessary and also another one that only has level/node 6 & 7, without levels/nodes 1-5.
    Any help would be much appreciated.
    Thanks
    Bhav

Maybe you are looking for