Forum Discussion

Umidvar's avatar
Umidvar
New Member
2 years ago
Solved

Not enough memory to complete this operation

I wanted to created a new column to get numbers per product depending on date column in Power BI Desktop but it gives error not enough memory to complete this operation. I have also replaced EARLIER(...
  • jdbuchanan71's avatar
    2 years ago

    For that we just need to find the lowest date for the product and comare that to the date of the row.

    This would be adding a calcualted column to your table.

    Production Day = 
    VAR _ProdStart = CALCULATE ( MIN ( 'YourTable'[Date] ), ALLEXCEPT ( 'YourTable', 'YourTable'[Product] ) )
    RETURN 'YourTable'[Date] - _ProdStart + 1

    I have attached my sample file for you to look at.