Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sohananahid
Post Partisan
Post Partisan

How to add "Data Transformation" steps using Direct Query with Azure Analysis Services from Power BI

Hi,

I have a Power bI report using SQL server DB tables and few other data sources [Data Ware house]. I am trying to migrate data connection to Azure Analysis Services [AAS]. I started using Live connection-> Direct Query and selected the 7 tables I need. I could successfully make the connection. But I am having challenge in next step!

The existing report adds "Transform Data" steps [Add new Columns from an existing Col, Merge with another table, etc.] to almost all of the 7 tables. Here is one set of steps for 1 of the tables:

sohananahid_0-1689366457842.png

The existing report also builds new datasets from some of these 7 tables. 

-My question is how do I implement these "Data Transform" steps in Direct Query mode using AAS? Direct Query doesn't allow me to see the "Data" view or allow any of the "Data Transform" steps on the tables.

Many thanks in advance.

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @sohananahid ,

 

You could copy the M code for the steps from the advanced editor as in the screenshot.

Idrissshatila_0-1689367033108.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi @Idrissshatila - even I have some M code from the existing report which uses "Import" mode for data connection, but now with "Direct Query"- I can't access those datasets if I try "Transform Data", hence can't paste the M code! Did you find a way to access the connected datasets [via Direct Query] in "Transform Data"? Thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.