Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Import data from Analyses Services without MDX (for business users)

Hi All,   We are important Data from Analyses Services into Power BI.   The challenge we are finding is that we can't filter on the data before importing into Power BI. Therefore it takes signifi...
  • cwebb's avatar
    8 years ago

    Hi Laz,

     

    Yes, it is possible to filter data from a cube without using MDX - you can do this in the Query Editor window just the same as with other data sources. After you have connected to Analysis Services and made an initial selection of data in the Navigator pane, click the Edit button:

     

     

    You can then select more measures and attributes by clicking the Add Items on the Cube Tools/Manage tab on the ribbon in the Query Editor:

     

     

     

    Once you have added your Year attribute you can then filter the years that are imported by clicking on the dropdown menu in the left-hand side of the Year column:

     

     

    Doing this will change the MDX query that is generated to only include the selected years - however you need to be careful, because there are some things you can do in the Query Editor that will stop the filtering from taking place in the MDX query, something I blogged about here:

    https://blog.crossjoin.co.uk/2018/05/10/how-to-tell-whether-query-folding-is-taking-place-when-importing-data-from-analysis-services-in-power-bi-and-excel-power-query/

     

    HTH,

     

    Chris

  • Syndicate_Admin's avatar
    5 years ago

    Hi Laz,

     

    Yes, it is possible to filter data from a cube without using MDX - you can do this in the Query Editor window just the same as with other data sources. After you have connected to Analysis Services and made an initial selection of data in the Navigator pane, click the Edit button:

     

    SSASNav.png

     

    You can then select more measures and attributes by clicking the Add Items on the Cube Tools/Manage tab on the ribbon in the Query Editor:

     

    SSASQE.png 

     

    Once you have added your Year attribute you can then filter the years that are imported by clicking on the dropdown menu in the left-hand side of the Year column:

     

    SSASFilter.png

     

    Doing this will change the MDX query that is generated to only include the selected years - however you need to be careful, because there are some things you can do in the Query Editor that will stop the filtering from taking place in the MDX query, something I blogged about here:

    https://blog.crossjoin.co.uk/2018/05/10/how-to-tell-whether-query-folding-is-taking-place-when-importing-data-from-analysis-services-in-power-bi-and-excel-power-query/

     

    HTH,

     

    Chris