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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.