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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kumsha1
Post Patron
Post Patron

Not enough memory error with ALLEXCEPT calc

Hi,

 

we have a table visual with 31 columns and the visual renders and displays data in less than a minute, however when we try to add one more measure to this visual then system is propmting below memory error. Can someone pls help if there is any better way to rewrite this measure DAX formula to check MAX for each ID and then get the FLAG status...TIA.

 

Error:

kumsha1_0-1633576605338.png

 

Measure option 1:

Max Post Date Flag =
IF (
YEAR (
CALCULATE (
MAX ( 'CONSUMPTION CALC'[POST_DATE] ),
ALLEXCEPT ( 'CONSUMPTION CALC', 'CONSUMPTION CALC'[MATERIAL_ID] ),
FILTER ( 'CONSUMPTION CALC', 'CONSUMPTION CALC'[QTY] < 0 ),
'CONSUMPTION CALC'[MVMT_TYPE_ID] <> "551"
)
) > 1980,
"",
"No Consumption"
)
------------------------------
Measure option 2:
Max Post Date New =
VAR _MAXPOSTDATE =
CALCULATE (
MAX ( 'CONSUMPTION CALC'[POST_DATE] ),
ALLEXCEPT ( 'CONSUMPTION CALC', 'CONSUMPTION CALC'[MATERIAL_ID] ),
FILTER ( 'CONSUMPTION CALC', 'CONSUMPTION CALC'[QTY] < 0 ),
'CONSUMPTION CALC'[MVMT_TYPE_ID] <> "551"
)
VAR _FLAG =
IF ( YEAR ( _MAXPOSTDATE ) > 1980, "", "No consumption" )
RETURN
_FLAG
3 REPLIES 3
kumsha1
Post Patron
Post Patron

Hi @amitchandak ,

Increased the memory of desktop file and rewritten the DAX for this measure but still have same memory issue.. Report published to PRO workspace and PREMIUM P1 workspace also have this issue with below error.

 

kumsha1_0-1633578246941.png

Actual file size is 63 MB, not sure where and why so much of memory being consumed.

amitchandak
Super User
Super User

@kumsha1 , Try like

 

Max Post Date Flag =
IF (
YEAR (
CALCULATE (
MAX ( 'CONSUMPTION CALC'[POST_DATE] ),
ALLEXCEPT ( 'CONSUMPTION CALC', 'CONSUMPTION CALC'[MATERIAL_ID] ),
FILTER ( 'CONSUMPTION CALC', 'CONSUMPTION CALC'[QTY] < 0 && 'CONSUMPTION CALC'[MVMT_TYPE_ID] <> "551"
)
) > 1980,
"",
"No Consumption"
)

 

Also increase Data management cache under File-> Options and setting -> Options -> data Load

and try

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.