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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mahenkj2
Solution Sage
Solution Sage

DAX measure slower when adding field from another table

I have situation in which four tables namely A,B,C,D are connected this way:

mahenkj2_1-1716197092467.png

 

I need to create a measure to calculate Overdue status, if [LatestDeliveryDate] in table D for each salesOrderItemID is high, equal or lower than today.

 May be as below:

 

OverdueMeasure = 
VAR LatestDeliveryDate = MAX(D[LatestDeliveryDate])
RETURN
IF(
    LatestDeliveryDate < TODAY(), 
    "Overdue", 
    "Not yet"
)

 

 

As soon as I add fields from table A with this measure, visual becomes slower and never see measure calculated in the visual. Without table A, it works fine. What changes I need to do in this measure, pls suggest.

1 REPLY 1
Sergii24
Super User
Super User

Hi @mahenkj2, I believe there might be too many reasons for such behavior, so without semantic model and sample pbix it's gonna be difficult to give you a single advice that works.

From what I see in your model I suppose tables C and D (or at least one of them) to be dimensional table of SalesOrder. If so, my following question would be: how often you update your report? Once a day? If so, I'd define Overdue status in PowerQuery (considering that you check the date with today, even multiple refreshes on the day will not change this value). That will allow you to use this column  in other measures and even add it as a filter (as I expect one of your following tasks to be to "show" those orders in delay. So you can use this column as a filter instead of using measure on viasual level filters).

Let me know if it works for you and good luck!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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