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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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]))

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" 

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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