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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Error when using Dax formula in a line Chart (SUMX, SUMMARIZE)

Hello everybody,

 

I have a Fact table that contains 200Millions rows

I have a problem with a dax formula when i put it in a line Chart with axis = week

The dax formula ->

KPI =  SUMX(DISTINCT(SUMMARIZE(FILTER('Fact_Table','Fact_Table'[level]="Low"),'Fact_Table'[id_cv],'FACT_Table'[Server_id])),1)

the error is : 

Nina_nax_1-1637750099798.png

 

Nina_nax_0-1637749681452.png

I tried this formula too, and i have the same problem :

KPI = CALCULATE(COUNTROWS(GROUPBY('Fact_Table';'Fact_Table'[id_cv];'Fact_Table'[Serveur_id]));'Fact_Table'[level]="Low")

 

I have to filter on a specific date for the graph to display correctly

 

Any help with this would be appreciated.

Thank you 

5 REPLIES 5
Anonymous
Not applicable

Hi  @Anonymous ,

Imported data may be too much, Try removing columns / rows that you may not need in your table and refreshing. Also, check to see if you have relationships set if not you may have an underlying cartesian product.

https://community.powerbi.com/t5/Service/Memory-error-Memory-Allocation-failure/m-p/278131/highlight/true

https://windowsreport.com/memory-error-allocation-failure/

Or use Dax studio to detect the content and number of queries issued by Power BI Desktop.

https://daxstudio.org/

https://www.sqlbi.com/articles/capturing-power-bi-queries-using-dax-studio/

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Try like

countrows(SUMMARIZE(FILTER('Fact_Table','Fact_Table'[level]="Low"),'Fact_Table'[id_cv],'Faits_PVM'[Server_id]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak

Thank you for your answer.

the formula returns me result = (BLANK)

@Anonymous , do you have some values after filter

'Fact_Table'[level]="Low" 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Sorry, I tested with the wrong formula that's why i had a blank.

with your formula, it works when i use the formula in a card, but when i use it in the line Chart with axis = week it's shows me the same error 

Nina_nax_0-1637757691708.png

If I want the chart to show me a result and remove the error, i have to apply a filter to reduce the data and in this case it works. but I want it to display the result without applying a particular filter

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.