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
majdkaid22
Helper V
Helper V

Memory issue, Dax Formula is not being processed

HI Community,

 

not sure if anyone have had similar issue and what is the work around it, rarther than upgrading the PC Ram 

 

Power BI.PNG

 

I've got to say, I have 227k rows in that table and my SQL Azure server is in Sydney, while am running it from Dubai

 

Any thouhgts? 

1 ACCEPTED SOLUTION

Before you move on, you could just try loading less rows or columns and see if that actually fixes the problem. 

 

Regarding unpivot:

 

Let's say you have the following 7 columns 

 

date, stock, buy, sell, high, low, vol

 

you can load the table into power query (get data). Then select the first 2 columns, right click and select "unpivot other columns. This will then give you 4 columns as follows

 

date, stock, attribute, value.

 

the last 4 column headings will now be text in the attribute column

the values from the last 4 columns will be values in the values column. 

 

Best set thing to do is build a simple test and see how it works. 

 

You ou then need to change your measures. 

 

Instead of

=sum(table[vol)]

you would write

=calculate(sum(table[value]),table[attribute]="vol")



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

6 REPLIES 6
MattAllington
Community Champion
Community Champion

In your biggest table. How many rows, how many columns?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington in this particular table I have 227,000 rows and 49 columns.

 

In other table, I have over than 800,000 rows and around 49 columns as well

49 Colums sounds like the problem. In power pivot, you want long narrow tables. You do not want wide tables where ever you can avoid it.

 

what is in all these columns?  Can you unpivot the data?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington am not quite familiar how unpivot would affect my data. I've never did unpivot exrcise. 

 

Am in FX Trading, and all these columns are related to transactions, exchange prices..ect I've reduced the number of columns to 14, but the DAX formula is still not going through. I won't be able to reduce further as the data would become useless 

Before you move on, you could just try loading less rows or columns and see if that actually fixes the problem. 

 

Regarding unpivot:

 

Let's say you have the following 7 columns 

 

date, stock, buy, sell, high, low, vol

 

you can load the table into power query (get data). Then select the first 2 columns, right click and select "unpivot other columns. This will then give you 4 columns as follows

 

date, stock, attribute, value.

 

the last 4 column headings will now be text in the attribute column

the values from the last 4 columns will be values in the values column. 

 

Best set thing to do is build a simple test and see how it works. 

 

You ou then need to change your measures. 

 

Instead of

=sum(table[vol)]

you would write

=calculate(sum(table[value]),table[attribute]="vol")



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington Matt, decreasing the number of rows worked perfectly! 

 

I basically created 2 copies of the same table, one with the values that I want this formula to apply on, and other duplicate table with filtered values don't require the formula (the higher volume of rows are here) 

 

appreciated mate

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!

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.