Transform power pivot model to query

hi eb
after building a power pivot model which includes a number of related tables
i realized i want to analyze results in a simple table not in pivot tables
there for my model should result to one table of records.
So i guess i need to start with a single query which will return a single results table.
Can i transform my original model to free sql to be used as my data source?
TIA!
Rea

In Excel 2013 you can do this:
click ribbon Data / Existing Connections
click tab Tables
select one of the tables of your PowerPivot model (not the Workbook Data Model at the beginning of the list)
click Open
In the Import Data dialog box, confirm you want to import a Table and click OK
Right-click any of the cells of the table and select Table / Edit DAX menu
In the Edit DAX dialog box change Command Type to DAX, the write the DAX query you want in the Expression text box, then click OK
Of course, in order to write the DAX query I suggest you using a better editor such as DAX Studio (more info here:
http://www.sqlbi.com/tools/dax-studio).
Marco

Similar Messages

  • DMV to list table relationships in a Power Pivot model ?

    I have used different queries based on DMVs which let you extract data from a Power Pivot model in order to create a design documentation: list of tables, columns, calculated columns formulas, measures ...etc. 
    Yet, I have not found the way to extract a list of all tables relationships in the model. Sure enough, I can copy/paste it from the PowerPivot window.
    But would someone have a query that extracts table relationships ?
    Regards,
    Bertrand 

    I do not believe that there is any $system based DMV which returns relationship information.
    You can get this information from an SSAS Tabular instance using a DISCOVER_CSDL_METADATA call, but that returns an XML document with the all the metadata and I don't know of any easy way to call that against a PowerPivot model (unless it's deployed to sharepoint)
    The following is an example query that I ran against a tabular SSAS instance.
    <Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
    <RequestType>DISCOVER_CSDL_METADATA</RequestType>
        <Restrictions>
    <RestrictionList>
    <CATALOG_NAME>Adventure Works Tabular</CATALOG_NAME>
    <PERSPECTIVE_NAME>Model</PERSPECTIVE_NAME>
    <VERSION>1.2</VERSION>
    </RestrictionList>
    </Restrictions>
        <Properties>
    <PropertyList>
    <Catalog>Adventure Works Tabular</Catalog>
    <FORMAT>Tabular</FORMAT>
        </PropertyList>
    </Properties>
    </Discover>
    http://darren.gosbell.com - please mark correct answers

  • How do I filter on multiple values / labels within a Pivot Table which points to a Power Pivot Model

    Hi,
    How do I filter on multiple values / labels within a large data set within a Pivot Table which points to a Power Pivot Model. I am current using Excel 2010 64 bit. I intend to empower users to achieve this by simply using the Excel user interface, not by
    using Excel formula or DAX. Please find the attached screen shot as a worked example, also in my real life example not all the values are available in the drop down. You can't use a slicer for the same reason as you can't use a drop down. I guess what I was
    hoping for is for the user to be able to enter AND or OR within the associated dialog box. Is there any way around this?
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi
    This is the forum to discuss questions about Microsoft Excel develop (VBA, Automation). For your question is more about pivot table features  for Excel, I will move
    this thread to the TechNet forum for Excel.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share
    their knowledge or learn from your interaction with us.
    Thank you for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What user should be used when importing a Power Pivot model into SSAS tabular?

    I created a Power Pivot model using my own userid.
    In SSDT I can import that model but it saves the model in my own My Documents folder. In SSMS, other users can browse the data in that model.
    If I tell SSDT to save the model in the Public user's My Documents, the model is not visible in SSMS for anyone to see.
    If a colleague imports the model, it can be seen in SSMS but there is no data when it is browsed.
    There seems to be a tie up with the user id I used when the model was first created. Is it possible to break that link, or should we have a user id specifically for creating and deploying Power BI models via SSAS tabular?
    Propdev

    inputComboboxListOfValues
    selectOneChoice
    inputListOfValues

  • How to Empty all rows within a Power Pivot Model

    Hi,
    I would like to know how to empty all rows within a Power Pivot model. I am in the process of creating quite a complex Power Pivot model. This means I need to create some sort of primitive version control process, e.g. stored multiple backups of the Power
    Pivot model without the data.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Forget what I've said before:
    Have a look at Gil's thread here:
    https://social.technet.microsoft.com/Forums/en-US/40abe021-1abd-4a2a-bf33-a035847fb7be/disconnect-datamodel-from-source?forum=powerquery
    For Power Pivot it means that you can get rid of all your data, but Keep Relations, measures, ..everything.
    Just import your tables once in order to get the connections right and move on.
    Imke

  • How to change column order in power pivot model

    Hi All,
    I have an existing Power Pivot Data Model. In the data model when I add a new column it always go to the end. Is there any way to re-order columns in an existing data model (data model accessed via manage button on ribbon)
    Thanks
    Sonny

    Hello Sonny,
    In common the order of the columns shouldn't matter. But if you want to reange the order, you can simply drag&drop a column to an other Position. Click on the column header and keep the mouse key pressed, then move it to the position you want.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to access sharepoint List Data in Power Pivot model

    Hi,
    I have a sharepoint list and i want to access the list in power pivot workbook.
    I tryed exporting the list as datafeed but iam that is missing under export.
    Iam stuck pls help any other approach.?
    Regards,
    Krishnaa

    Hello,
    I have answered this question in this thread below:
    http://social.technet.microsoft.com/Forums/office/en-US/92a04e1b-a5f7-4dbe-88e7-0a1064622641/sharepoint-list-access-in-power-pivot?forum=sqlkjpowerpointforsharepoint
    Please go through the following aticles:
    Using SharePoint List Data in PowerPivot:
    http://msdn.microsoft.com/en-us/library/hh230322.aspx
    Using a SharePoint List as a data source:
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/07/11/excel-services-using-a-sharepoint-list-as-a-data-source.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Blank Record Appearing in Power Pivot, How do I ensure that my Power Query script is filtering out all the Blank Records

    Hi,
    I noticed once of my Fact tables in my Power Pivot model contains a blank record. I can't understand why.
    So I added a Filter expression to the underlying Power Query query, something like; -
    Text.Length("MyField") > 0
    However after refreshing the Power Query query which contains the above expression the blank record still appears within my Power Pivot table.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    hi..
    As my understand, the blank record in Power Query will be return null value . So that, You try to use Text.Length("MyField" ) <> null.
    Regards,

  • Power BI - Office 365 data storage for Excel (Power Pivot & Power Query) architecture

    Hi, I trying to find a comprehensive view of the Power BI architecture, specifically where the data for Power Pivot & Power Query files are held. I've seen reference to the Vertipaq Engine and the data being stored in the Excel File, however this is
    in reference to 2010.
    Other references I've seen (SharePoint on premise with Power Pivot) have shown me that the data held in the Excel files on the SharePoint sites are actually held in SQL Server instances.
    Could anyone provide clarity on the architecture for Power BI please...
    Tim
    Thank you for you time folks!

    Hi Tim,
    let my try to explain this:
    When you load data into Power Pivot it is actually loaded into Vertipaq (in-memory column-store) and it resides there until you close Excel. Technically speaking Power Pivot is a single-user SQL Server Analysis Services instance hosted within Excel. When you
    close Excel a backup of the Power Pivot "database" is created and stored within the resulting .xlsx-file .
    Any user that has access to the Excel file also has access to the Power Pivot model, so there is actually no security
    This is very similar to any other excel file
    Once the Excel is stored in SharePoint / SharePointOnline and is access the first time the backup that is stored within the Excel is restored into SQL Server Analysis Services instance running in SharePoint Integrate mode
    all connections to the Excel-File are redirected to that SSAS instance. After some time of inactivity the model is unloaded from that SSAS instance again to free up the memory
    the data itself so basically always resides inside Power Pivot or respectively the Excel file
    Power Query only stores the actual query (= M-script) but no data
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added

    Hi there,
    I recently had the following situation, where I changed the source of my CSV file in Power Query.
    Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
    But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
    But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
    This is what I get from the Call Stack
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
    If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
    Has anyone had this before and know how to fix it?
    http://www.bidn.com/blogs/guavaq

    Hi there
    I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
    Thanks
    Gilbert
    http://www.bidn.com/blogs/guavaq

  • Power Pivot enable Excel workbook protection with password?

    Hi All
    We have a power pivot deployment without SharePoint in excel 2013 professional plus. All woks fine until we use a password to protect excel workbook so unauthorised users cannot open it. After enabling password protection we cannot access the power pivot
    data model under power pivot excel tab. It tries to upgrade the power pivot model(which is not logical because it didn't do it before and was working fine). thereafter upgrade fails.
    Has anyone successfully password protected a power pivot excel 2013 workbook? Is there a workaround to enabling security without SharePoint/office 365 etc?
    Thanks
    Sonny

    Hi Sonny,
    PowerPivot does not support row security or dynamic security. Security for a workbook is just a binary choice – either a user can read a workbook or she can’t.
    In this case, I would suggest you consider designing Tabular model which can be secured using row security and dynamic security is also supported. For more information, please see:
    Comparing Tabular and Multidimensional Solutions (SSAS):
    http://technet.microsoft.com/en-us/library/hh212940.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • How to change user created power pivot table names

    Hi All,
    First I created a excel table in a new worksheet . Then I add it to the model using power pivot tab option " add to data model". this is now added to my power pivot model. I change name both in excel and also in power pivot model. however when
    I see the table in Pivot Data Fields option I can only see it as "table1".  Is there any way to change the table name so users can easily identify it?
    Thanks
    Sonny

    I find that changing the name of my tables in Excel before importing them into PowerPivot is the best way to go.
    http://darren.gosbell.com - please mark correct answers

  • Does Power BI has similar feature as Power Pivot Gallery in SharePoint 2013?

    Hi,
    I have a data model in an Excel file, and I would like to publish it to the Power Pivot Gallery, so other people can connect to the data model in their workbooks and create their own visualizations.  How do you achieve this in Power BI?
    Thanks, Hilda

    Is it possible that you have imported data from SQL Server into an Excel worksheet and then created a Power Pivot model from that data rather than importing the data directly from SQL Server into Power Pivot?
    In the PowerPivot designer, click the Existing Connections button on the Home ribbon to verify the source of data for each table in your model.
    Paul Turley, MVP, www.SQLServerBIBlog.com *Please vote if helpful*

  • Controlling format in power pivot

    Hi we run 2012 entwrprise.  Can the format of a cell be controlled by what another cell has?  eg if other cell has an A, this one shows as currency.  But if it contains a B, this one shows as just a number with 1000'ws sepaeator?  If
    yes, is this done in the pp window or in the pivot table?

    Hi DB042189,
    The only way I can think of achieving this within the Power Pivot model is by converting the numbers into text based on the conditional logic. I have provided a quick illustration of this approach below...
    Here is the very simple test data:
    Column1
    Column2
    A
    1000
    B
    1000
    A
    500
    B
    700
    Here are the defined measures: 
    SumOfColumn2:=CALCULATE(SUM(Data[Column2]))
    And...
    FormattedSumOfColumn2:=
    IF(
    HASONEVALUE(Data[Column1]),
    SWITCH(
    VALUES(Data[Column1]),
    "A", FORMAT([SumOfColumn2], "£#,#"),
    "B", FORMAT([SumOfColumn2], "#,#"),
    FORMAT([SumOfColumn2], "General Number")
    FORMAT([SumOfColumn2], "General Number")
    Here is the outcome:
    The idea here is that for charts you would use the measure that returns the actual numbers (i.e. SumOfColumn2 in the example), and for Pivot Tables you would use the measure that returns the formatted text (i.e. FormattedSumOfColumn2).
    You can read about the more 'interesting' functions out of the ones used in this solution:
    HASONEVALUE:http://technet.microsoft.com/en-us/library/gg492190.aspx
    VALUES: http://technet.microsoft.com/en-us/library/ee634547.aspx
    SWITCH: http://technet.microsoft.com/en-us/library/gg492166.aspx
    FORMAT: http://technet.microsoft.com/en-us/library/ee634924.aspx
    Hope this helps,
    Michael

  • SOAP webservices feed for Power Pivot

    Hi Everyone, I have a SOAP web services that I would like to use as a feed of my Power Pivot model. Any idea how to import a WSDL to a power Pivot model?
    Thanks
    Sebastian

    Hi Sebastian,
    According to your description, you need to use SOAP web services as the data source in the Power Pivot model, right?
    PowerPivot for Excel can import data from a wide variety of sources. After you have imported the data, you can refresh the data at any time to reflect any changes to the data that have occurred in the source. Based on my research, we cannot use SOAP
    web services as the data source in the Power Pivot model, here is a document that explains the kinds of data sources you can use and provides guidance for identifying which ones work best with a PowerPivot workbook.
    http://msdn.microsoft.com/en-us/library/gg399082(v=sql.110).aspx
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for