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! Learn more

Reply
Anonymous
Not applicable

data not refreshing

hallo Everyone,

 

I have big data. Two tables each with more than 1,500,000 rows and will keep expanding. 

Everything was working well untill I added a calculated column in on of the tables (below) 

 

after adding this calculated column the data is refreshing then stopping at one point and no matter how I wait it does not go futher to update. 

 

Is there a way to solve this issue. 

TatyDo_0-1621584653868.png

 

new column =
var _max =maxx(filter(Table, [ID] = earlier([ID]) && [datetime] <earlier([Datetime])),[Datetime])
return
if(isblank(_max), [value] , [value] -maxx(filter(Table, [ID] = earlier([ID]) && [datetime] =_max),[value]))

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

Hi @Anonymous 

This may be caused by your calculated column formula.

Use VAR for calculations as much as possible and avoid using Filter as a filter arguement, which can greatly reduce the memory required by your query and improve the performance of your query.

For reference: DAX: Use variables to improve your formulas

DAX: Avoid using FILTER as a filter argument

To optmizae your Power BI performance, you may refer to this blog. 

 

Best Regards,

Rico Zhou

 

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

mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression instead.  It would also be better to split your datetime column to date and time columns (or just convert to date if you don't need your time component); that will help the performance of your model overall.

 

NewColumn =
VAR vThisID = Table[ID]
VAR vThisDateTime = Table[Datetime]
VAR vPrevDatetime =
    CALCULATE (
        MAX ( table[datetime] ),
        Table[ID] = vThisID,
        Table[Datetime] < vThisDateTime
    )
VAR result =
    CALCULATE (
        MAX ( table[Value] ),
        Table[ID] = vThisID,
        Table[Datetime] = vPrevDatetime
    )
RETURN
    IF ( ISBLANK ( vPrevDateTime ), Table[Value], result )

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@Anonymous , In file-> Options and Settings -> Options -> Data Load, Increase cache size.

Also increase virtual RAM of the system if needed

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
Anonymous
Not applicable

Thank you for the answer, I have increased the RAM and the cashe size but it did not work, and when I look at the information of memory and CPU it seems to be on the average of 50% and there is no pressure there. Do you have other ideas of where it might be the problem?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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