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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alexa_0028
Resolver II
Resolver II

Poor Performance of Report

Hi All,

I have a big sales tables which contains invoice date.
I am calculating last_invoice as measure=   datediff(today(),max([Invoice Date]),DAY)

When I am adding this to my table it takes 30 mins to load. The number of records in my sales table is 30M.
Please help me 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@alexa_0028 

Try one of the following:

last_invoice  =   INT ( TODAY() -  SELECTEDVALUE ( TABLE[Invoice Date]) )
     

last_invoice  =   INT ( TODAY() - MAX ( TABLE[Invoice Date]) )
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi@alexa_0028, 

Complex Dax calculations do cause poor performance in reports, but the measure you are using is not very complex.

According to your description, there are more problems with memory usage and file size optimization, for better performance optimization, we recommend that you disable "Auto date/time" in data load options settings.

You can also clear the cache currently used and change the Maximum allowed(MB).

 

vcaitlynmstf_0-1628132478925.png

 

 

Article for reference: Improve Power BI Performance with Auto Date/Time and DAX Variables

 

If this doesn't work, consider whether it's a Date Dimension problem, and here's an article to help you understand it. Performance Design Tip for Power BI: Be Careful of Dates

I'm not sure if this is the only measure in your report, if there are others present, I suggest you improve your Power BI performance by optimizing your DAX, see this article for details. Improve Power BI Performance by Optimizing DAX

 

If this does not solve your problem, please provide more details and be free to let me know.

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

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

alexa_0028
Resolver II
Resolver II

Hi @Fowmy ,
I tried above approach but I didn't get result.
It failed saying its using a lot of memory and the measure needs to simplify.

alexa_0028_0-1627595723896.png

 

Fowmy
Super User
Super User

@alexa_0028 

Try one of the following:

last_invoice  =   INT ( TODAY() -  SELECTEDVALUE ( TABLE[Invoice Date]) )
     

last_invoice  =   INT ( TODAY() - MAX ( TABLE[Invoice Date]) )
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

This worked after creating it as calculated column instead of measure

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors