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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Pseifert
Frequent Visitor

16gb and STILL not enough memory to refresh calculations within table from SQL

Hello,

 

I have some complex calculations in order to get the hours between punch ins/punch outs from a time clock. I just dont understand how to adjust other than moving these calculations into a sql view and then importing. Powerbi is such a memory hog and I have 16gb... I was wondering if there is a better calculation or way to write these to free up the amount of memory on refresh prior to attempting in SQL. Maybe there is something that I am missing. Is there a way to move these calculations away from the table that is being refreshed??

 

Col1 =
CALCULATE (
MIN ( NorthtecPunchOrigin[Index] ),
FILTER (
ALLEXCEPT ( 'NorthtecPunchOrigin', NorthtecPunchOrigin[PERSONNUM] ),
NorthtecPunchOrigin[Index] > EARLIER(NorthtecPunchOrigin[Index])
&& NorthtecPunchOrigin[INOUT] = 0
)
)

 

Col2 =
LOOKUPVALUE (
NorthtecPunchOrigin[Date/Time],
NorthtecPunchOrigin[Index], NorthtecPunchOrigin[Col1]
)

 

Col3 =
IF (
NorthtecPunchOrigin[INOUT] = 1,
DATEDIFF ( NorthtecPunchOrigin[Date/Time], NorthtecPunchOrigin[Col2], MINUTE),
BLANK ()
)

 

Capture5.PNGthe FT employee table is an antijoin so that they are filtered out of PunchOrigin

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Thanks for the reply, looks good and will attempt but I am unsure how to apply to this situation with Date/Time rather than just dates in the examples provided 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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