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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TatyDo
Helper III
Helper III

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
v-rzhou-msft
Community Support
Community Support

Hi @TatyDo 

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

v-rzhou-msft
Community Support
Community Support

Hi @TatyDo 

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
Employee
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

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

Also increase virtual RAM of the system if needed

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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