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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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