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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.