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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
dylanndengu
Helper I
Helper I

DAX Equations with DirectQuery

Hi Everyone,

 

I am using DirectQuery to access data in a PostgreSQL database with millions of rows. I'm accessing about 10 different tables and trying to make reports using them. One of them is current week vs previous week revenue. However, I am having some trouble using the DAX calculations to form weeks.

As seen below, the "reportdate" I would like to access is in the "public_fact_sales_detail" table. However, Power BI is telling me it cannot find the table, but it is the home table shown in the circled area below. Why are the DAX not recognizing any of my tables in DirectQuery?

 

dylanndengu_0-1615973281476.png

 

Kind regards

Dylan

 

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @dylanndengu,

 

Here is the modeling limitation of DQ.

Although import mode has complete modeling capabilities, it is slow to import data.
You can model in SQL SERVER Analysis Services.
Then Connect to Analysis Services tabular data with Live Connection in Power BI Desktop.

You can refer:

https://docs.microsoft.com/en-us/analysis-services/tutorial-tabular-1400/as-lesson-1-create-a-new-ta...

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-analysis-services-tabular-data

 

Best Regards,

Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@dylanndengu , I see a space above and I see a _ below after public

 

Also not all column operation are supported on direct query 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi again @amitchandak, noted the change but I still can't access the table for DAX calculations. Alternatively, would you have any suggestion as to how I could import the data into Power BI quickly? Because it takes at least 2 hours or so to import all the data from PostgreSQL. Even after it is imported, it then can take an hour to refresh the next day.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.