How to have a Total dimension element from tabular model?

Hi,
I have a dimension in a tabular model named School. I created a parameter that has all the schools based on a DAX query dataset, however I would also like to include a Total element that sums all the schools. How can this be achieved? In SSAS OLAP I would
have an "ALL" elements, but I'm not sure how this translates into Tabular Mode.
Thank you

Sure, I am creating reports in reporting services. I am creating datasets to retrieve each dimension members that exist in the fact table to create parameters that will filter the data dataset.
Now imagine, I select a Year and then I want to be able to select an element like "all schools" to check the aggregate number of subscriptions instead of only 1 of the schools.

Similar Messages

  • How to create ArrayColletion in mx:Script from mx:Model id="results" source="/data/data.xml" /

    How to create ArrayColletion in mx:Script from <mx:Model
    id="results" source="/data/data.xml" />
    Please see my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Model id="results" source="/data/data.xml" />
    <mx:Script>
    import mx.collections.ArrayCollection;
    import mx.utils.ArrayUtil;
    import mx.controls.Alert;
    </mx:Script>
    <mx:ArrayCollection id ="dt1"
    source="{ArrayUtil.toArray(results.result)}"/>
    <mx:Script><![CDATA[
    [Bindable]
    public var expenses:ArrayCollection = dt1;
    [Bindable]
    public var expenses2:ArrayCollection = dt1;
    [Bindable]
    public var dp:ArrayCollection=expenses;
    public function changeDataProvider():void{
    Alert.show(expenses.toString());
    if (dp==expenses){
    dp=expenses2;
    }else{
    dp=expenses;
    ]]></mx:Script>
    <mx:Panel x="10" y="10" width="100%" height="378"
    layout="absolute">
    <mx:ColumnChart dataProvider="{dt1}" x="10" y="10"
    id="myChart" height="318" width="100%">
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="month"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries displayName="apple" yField="apple"/>
    <mx:ColumnSeries displayName="orange"
    yField="orange"/>
    <mx:ColumnSeries displayName="banana"
    yField="banana"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{myChart}" x="481" y="10"/>
    </mx:Panel>
    <mx:Button x="284" y="416" label="Change Data" id="bt"
    click="changeDataProvider()" />
    </mx:Application>

    Tracy,
    Thanks. That worked. However I have another related question:
    I convert the xml feed to a XMLListCollection by doing:
    <mx:XMLListCollection id="mission"
    source="{xmlFeed.lastResult.day}"/>
    and
    <mx:XMLListCollection id="mission1"
    source="{xmlFeed.lastResult.day.tBlock}"/>
    On the chart I have
    <mx:ColumnChart id="missionReadiness" height="150%"
    width="100%"
    paddingLeft="2" paddingRight="2"
    showDataTips="true" dataProvider="{mission1}">
    <mx:series>
    <mx:ColumnSeries xField="" yField="@today"
    displayName="Today"/>
    <mx:ColumnSeries xField="" yField="@tomorrow"
    displayName="Tomorrow"/>
    <mx:ColumnSeries xField="" yField="@afterT"
    displayName="After Tomorrow"/>
    </mx:series>
    </mx:ColumnChart>
    the yField works, but for the xField I want to have the @date
    but refers to the parent node, so I am clueless on how to refer to
    it.
    Also, I would like to display on the chart only the values to
    a specific date (like @date="05/17/2007").
    Any suggestions on how to do that?
    Gilbert

  • How to use data of multiline element from workflow container

    Hi,
    Can you please tell me how to access rows of multiline element of workflow container.
    Scenario is like below.
    I have values in a multiline container(table) of workflow container.
    Now inside Fork branches  i need to check for specific data in the above table and with that condition i have to send workitem.
    I hope u can understand,otherwise please revert.
    Thanks in advance,
    Madhu

    You cannot didrectly check the condition...
    what you have to do is.. write a inside the method as below and set the flag...and use the flag in condition editor...
    SWC_GET_TABLE CONTAINER 'AGENTS'  lt_agents.
    loop at lt_agents ino wa_agents.
    if wa_agents = 'A'.
    lv_flag = X.
    endif.
    endloop.
    SWC_SET_ELEMENT CONTAINER 'FLAG' lv_flag.
    Create an export parameter FLAG as char1 with export marked.
    Do the neccesary bindings from task to workflow.
    Then in workflow check this flag in condition editor.

  • How to save only newly added elements from the trailing list

    Dear,
    I have a shuttle bean with left and right trailing lists.
    At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    exception.
    What is the approach I can take to only save newly added elements from the shuttle?
    I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
    if (items != null)
    Object ia[] = items.toArray();
    for(int i=1; i<ia.length; i++)
    Row rowApproval = vo.createRow();
    vo.insertRow(rowApproval);
    rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
    Row row = vo.getCurrentRow();
    row.setAttribute("TicketId",items.get(0));
    row.setAttribute("ResponsibilityId",items.get(i) );
    row.setAttribute("Status",items.get(i));
    or should I do something in the EO?
    Thank you
    Anatoliy

    Hi,
    Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
    I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
    Regards,
    Gyan

  • How to have multiple default dimension members

    Hi There
    I am using AS2008, when editing a role, under the dimension data tab, under advanced, you can define a default dimension member.
    However i need my default dimension member to be members, i have tried using a attribute set to true for many members and creating a hierarchy.
    But neither works, it seems to randomly pick one Key for a set of members and you cannot use a hierarchy to define members.
    How can i define multiple default members ? what i really want is all members except one.
    Thanx

    We're going to need some more details about exactly what you did because it really sounds like you're making a mistake. This extra attribute should work.
    The only situation I can think of where it might not work as intended is if your new attribute is a property of the state attribute... when you slice by the state attribute, it will override the default member on the new attribute.
    What are your attribute relationships in that dimension? What do you get when you run the following MDX queries?
    with
    member test1 as [Geography].[State].DefaultMember.UniqueName
    member test2 as [Geography].[NewAttribute].DefaultMember.UniqueName
    select {test1,test2} on 0
    from YourCube
    select {} on 0,
    [Geography].[NewAttribute].[NewAttribute].Members
    *[Geography].[State].[State].Members on 1
    from YourCube
    As for the calculated member [Geography].[State].[All].[West], you can add to that to the MDX script (the Calculations tab in the cube designer) and it will be available to all sessions.http://artisconsulting.com/Blog/GregGalloway

  • How to get the total execution time from a tkprof file

    Hi,
    I have a tkprof file. How can I get the total execution time. Going through the file i guess the sum of "Total Waited" would give the total time in the section "Elapsed times include waiting on following events:"
    . The sample of tkprof is given below.
    SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
    SELECT POSTED_FLAG
    FROM
    AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM
      AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND
      NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND
      APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING')))
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute    442      0.08       0.13          0          0          0           0
    Fetch      963      0.22       4.72        350      16955          0         521
    total     1406      0.31       4.85        350      16955          0         521
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 173     (recursive depth: 1)
    Number of plan statistics captured: 1
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
             1          1          1  UNION-ALL  (cr=38 pr=3 pw=0 time=139 us)
             1          1          1   TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
             1          1          1    INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
             0          0          0   NESTED LOOPS  (cr=33 pr=3 pw=0 time=20897 us)
             0          0          0    NESTED LOOPS  (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
             1          1          1     TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
             0          0          0     INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
             0          0          0    TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       350        0.15          4.33
      Disk file operations I/O                        3        0.00          0.00
      latch: shared pool                              1        0.17          0.17
    ********************************************************************************

    user13019948 wrote:
    Hi,
    I have a tkprof file. How can I get the total execution time.
    call count cpu elapsed disk query current rows
    total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above

  • How to have fact and dimension which are not joined in same report

    Hi All,
    suppose we have 2 dimensions and 1 of them is joined to fact but we want to pull both these dimensions along with fact and fact column shows null but we dont want that .how can we have 2nd dimension which is not joined to fact in the same report .Actually i have a column called equipment schedueled time and it can be shown only with equipment dimension but I want to pull both equipment,geography and equipment scheduled time in report if I do it now it shows equipment scheduled time as null because its not joined with geography dimension.I want even if the geography dimension exists it should show the value of equipment scheduled time .
    Can someone please help me.
    Thanks in Advance

    Hi ,
    Can you please tell me what are fact and dimension tables of your requirement.If you want display the data from 2 dims and a fact table ,you have to establish the joins between facts and dimensions.
    mark if helpful/correct...
    thanks,
    prassu

  • How to install Lightroom and Photoshop Elements from my old pc to my new pc?

    I have a new pc and want to install Lightroom 5.7 and Photoshop Elements 12 from my old pc to the new one.

    For LR here is a useful link:
    http://www.lightroomqueen.com/how-move-lightroom-to-new-computer/
    There is also a video tutorial which covers moving a LR catalog to a new computer:
    http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/how-to-migrate-lr-to-an other-computer/
    For Elements you can simply install the application and then set up the Elements Editor for external editing in the LR Library prefs. I’m assuming you won’t be using Oranizer as well as LR. That can lead to confusion and broken links unless you are very disciplined.
    If you do intend to use Organizer the method is backup and restore, starting with an Organizer backup on the old PC.
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html

  • How to have access to itunes library from 2 accounts from the same machine?

    I have within my MacbookPro 2 accounts, one for my job and one personal. All my music is within my personal Itunes. Can I configure my Macbook to access my music from the professional account without having to duplicate all my music library?
    Regards

    See if this helps: iTunes: How to share music between different accounts on a single computer

  • How to get Cube and Dimension ID from SSAS Database programatically

    Hi All,
    I am processing one SSAS cube from SSIS package and processing the cubes dynamically .For this am putting the Cube ID ,Cube name, Dimension ID, Dimension Name in a table and generating the XML programmatically.
     I can right click the properties of the dimension and cube and will get the ID information. But is there any way we can get the ID information programmatically .So that On the fly I will get the information and create the XML without storing
    the these information in table.
    We are using 2008 R2
    Thanks in advance
    Roshan

    Hi,
    Here is the C# code you want. Try it and see.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml;
    using AMO = Microsoft.AnalysisServices;
    namespace ConsoleApplication4
    class Program
    static void Main(string[] args)
    AMO.Server oServer = new AMO.Server();
    oServer.Connect(@"Provider=MSOLAP.5;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AdventureWorksDW;Data Source=DEVWKS6\MSSQLSERVERMDX");
    foreach (AMO.Database db in oServer.Databases)
    foreach (AMO.Cube cube in db.Cubes)
    Console.WriteLine(System.String.Format("Cube Name : {0} Cube ID : {1}", cube.Name, cube.ID));
    foreach (AMO.CubeDimension dim in cube.Dimensions)
    Console.WriteLine(System.String.Format("Dimension Name : {0} Dimension ID : {1}", dim.Name, dim.ID));
    System.Console.WriteLine("");
    System.Console.WriteLine("");
    oServer.Disconnect(true);
    oServer.Dispose();
    System.Console.ReadLine();
    If you know your target SSAS Database Name, then you could use LINQ to narrow your search. Take a look into the following Code.
    AMO.Database db = oServer.Databases.Cast<AMO.Database>().Where<AMO.Database>(SSASdb => SSASdb.Name == "AdventureWorksDW").FirstOrDefault();
    foreach (AMO.Cube cube in db.Cubes)
    Console.WriteLine(System.String.Format("Cube Name : {0} Cube ID : {1}", cube.Name, cube.ID));
    foreach (AMO.CubeDimension dim in cube.Dimensions)
    Console.WriteLine(System.String.Format("Dimension Name : {0} Dimension ID : {1}", dim.Name, dim.ID));
    System.Console.WriteLine("");
    Best Regards...
    Chandima Lakmal Fonseka

  • How to have only single pages printed from iphoto book

    I would like to know if it is possible to have pages printed from an iphoto book that is not bound.  I just want the loose pages to create an ongoing scrapbook not an already bound book.  Is this possible?

    If you print yourself one way to do it is to start to print the whole book by typing Command+P.  Then in the print window select either All, Single or Range and then put in the page numbers you want to print. Then click on the PDF button and select Save PDF to iPhoto from the drop down menu.
    Screenshot from iPhoto 11 in Lion - Click to view full size
    This will create a 200 dpi jpg file for the page and import it into iPhoto.  From there you can print it yourself or have a local photofinisher print it on whatever stock you'd like.
    OT

  • I am wondering how to have iPhoto draw all photos from an external hard drive so I don't need to have them all on my iMac?

    I would like to save some space on my hard drive but having all pictures on a external hard drive for iPhoto to draw from. I am able to do this on iTunes but do not see how to do this on iPhoto.

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I have just updated Photoshop Elements from 12.0 to 12.1 and I am now unable to drag layers from one file and drop them into another. Help!

    I was able to do this until I updated. I need help fast as I need this feature to complete daily tasks for my job. I've come to a halt with my work because of this.
    I have the two files open as shown below. I'm trying to insert the image in the file on the left to the file on the right but when I drag to drop into the file, it doesn't happen.
    The cursor indicates it has picked up the image but it doesn't indicate that it can't be dropped, it just doesn't work. Help!!

    Given that you're on XP, we'd better try the following document:
    iTunes displays -50 error message when syncing iPod on Windows XP

  • How to have 1 Crystal report accessbile from two folders?

    If I have a folder OR Management with a sub folder volume \OR Management\Volume\Test.rpt and then I get a request for a specific set of Auditors that need access to the reports in \Volume, should I create a new Group and put the AD role in that group and assign security directly to that folder, or directly to the reports. OR can I create a new top Level folder Auditors, assign security to that folder, and then put a shortcut to either \Volume or the individual reports in the Auditors folder?
    Thanks,
    Phil

    Create a group, assing users to group
    add the group on top level folder  - and give VIEW access, and remove sub-folder option
    then come to the folder , add the group and grant required access on top of that group

  • How can I print, save or export from Data Modeler

    From Oracle SQL Developer I select Tools > Data Modeler, then drag a few tables on the surface. Both Print and Save options in the File menu are disabled. Also, there's no export option. What is the purpose of Data Modeler. I', using SQL Developer 2.1.0.63.

    It's Data Modeler Viewer included in SQL Developer 2.1. You need SQL Developer 3.0 or 3.1 EA1.
    Philip

Maybe you are looking for

  • Why does the highest quality ('Display') resolution vary from exporting one slideshow to the next?

    When exporting a slideshow from iPhoto I'm selecting the highest quality (Display). I noticed that resolution setting (Display) varies depending on which slide show I want to export (i.e. 1000 x 800, or 1420 x 800). Why?

  • G/L and vendor (FBL1N/FBL3N) account line item display

    Dear all, Do anyone of you know what event in which program calls the "display document" function within the "environment" menu from FBL1N or FBL3N transaction? Regards.

  • Why is the search field so small?

    This may not be a big issue, but I just wonder why is the search field on iTunes for Windows so extremely small that you can barely type the name of the artist and if the song or album is too long, it starts scrolling. There's an awful lot of space t

  • Mail is cooking my Mac

    Something happend with my MacBook Air after the last update to 10.8.3. Not only mine, my wifes too. When sending and opening a mail with a pdf attachment, the fans start spinning and Mail is soon up in 100% CPU usage. Opening the PDF in Preview at th

  • How do you restore a backup from icloud

    Hi All: So I went into my notes today to get some information there and poof, nothing, it's blank..... trying to think if I shut off it being backed up or not I went into settings and all my icloud settings were OFF. Well, I logged into icloud on my