Forum Discussion
How to connect to data using DAX
- Anonymous2 years ago
Hi penguins_fly ,
DAX, which stands for Data Analysis Expressions, is a formula language used in Power BI for creating custom calculations on data already in your model. It's primarily used for data analysis and creating measures and calculated columns within your Power BI datasets. DAX does not directly connect to or import data. Instead, it works on data that has already been imported into Power BI.
To connect to data sources like SQL, Excel, web, and CSV, Power BI uses the "Get Data" feature available in Power BI Desktop. This process is part of the data modeling phase, where you import data into Power BI before applying any DAX calculations.
But in Power Query you can use M function to connect to the data source, please confirm if this is the question your interviewer is asking? But it is true that DAX cannot connect to the data source.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi penguins_fly ,
DAX, which stands for Data Analysis Expressions, is a formula language used in Power BI for creating custom calculations on data already in your model. It's primarily used for data analysis and creating measures and calculated columns within your Power BI datasets. DAX does not directly connect to or import data. Instead, it works on data that has already been imported into Power BI.
To connect to data sources like SQL, Excel, web, and CSV, Power BI uses the "Get Data" feature available in Power BI Desktop. This process is part of the data modeling phase, where you import data into Power BI before applying any DAX calculations.
But in Power Query you can use M function to connect to the data source, please confirm if this is the question your interviewer is asking? But it is true that DAX cannot connect to the data source.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Anonymous .
Yeah, the interviewer did ask the same question. He asked if I knew about loading data using DAX and I thought I was wrong when I said I never heard of such an option. But again, he was not an expert in power BI or analytics.
Thanks again for clarifying though.
PS: It would be a great help if you could recommend any resources to learn different data connecting methods to Power BI.
- Anonymous2 years agoNot applicable
Hi penguins_fly ,
I recommend that you follow along with these official documents:
Connect to data in Power BI Desktop - Power BI | Microsoft LearnAlmost all of the ways Power BI connects to a data source are included here.
Best Regards,
Dino Tao- penguins_fly2 years agoRegular Visitor
Hi, Anonymous
Thank you for the recommendations. It helps a lot.