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
harshaSampath81
Helper II
Helper II

Is it Possible to do Dax Calculations when we use Direct Query ?

Can we perform calucations using DAX if we use DirectQuery in Power BI New Version ?

 

Harsha

1 ACCEPTED SOLUTION

4 REPLIES 4
v-huizhn-msft
Employee
Employee

Hi @harshaSampath81,

You can write some DAX functions even in Direct Query mode. You need to select File > Options and then Settings > Options and settings > DirectQuery, then selecting the option *Allow unrestricted measures in DirectQuery mode**. When that option is selected, any DAX expression that is valid for a measure can be used. The functions that are supported vary by data source, but Intellisense will prompt you with only the valid options are you enter your formulas.

Best Regards,
Angelia

Thanks to All

Sure you can, but you will have a set of limitations to live with.

I suggest you reading this whitepaper: https://www.sqlbi.com/articles/directquery-in-analysis-services-2016/, it applies to SSAS, but PowerBI is, at the end, Analysis Services. Moreover, it contains a lot of technical information, but if you find them overhelming, just skip them and read the sections about the differences between Direct Query vs Import mode.


Have fun with DAX!

Alberto Ferrari
http://www.sqlbi.com

Alberto Ferrari - SQLBI
GilbertQ
Super User
Super User

Hi @harshaSampath81

 

Yes you sure can, I was actually working on a Power BI Desktop file today that was using DirectQuery to a SQL Server.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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.