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
Rayzo92
Helper I
Helper I

sum function exceeded the available resources

Greeting members ,

 

I have a table that contain details about the badging of employees (my table contains  9 millions rows )

I created 5 measures that show how many a employees have badged (it's more like a flag)  ex  : 

 
* >30 times = if(SUM(Badgeage[Pointage Vide]) > 30 ,1,0)
* 20-30 times = IF(and(sum(Badgeage[Pointage Vide])>20,sum(Badgeage[Pointage Vide])<=30),1,0)
 
The problem members when i try to add these measures into a matrix that contain the name of the employees and their ID's etc ... i exceed the available resource .
i tried to publish this into my premium capacity workspace (P1) that have 6Go memory and had the same issue .
 
btw i checked the performance analyzer on power BI desktop and i notice the DAX are using too much memory 
is there a way i can optimize my queries please ? 
 
Thanks all in advance 
 
 
 
 
 
 
 

 

 

 

 

  

1 ACCEPTED SOLUTION
pratyashasamal
Super User
Super User

Hi @Rayzo92 ,
You can use Variable to optimize if Dax functions . Please check out this link :
https://www.sqlbi.com/articles/optimizing-if-and-switch-expressions-using-variables/

Thanks,
Pratyasha
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
pratyashasamal
Super User
Super User

Hi @Rayzo92 ,
You can use Variable to optimize if Dax functions . Please check out this link :
https://www.sqlbi.com/articles/optimizing-if-and-switch-expressions-using-variables/

Thanks,
Pratyasha
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.