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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Latrece03
New Member

Memory problem when table visual loads

Hi!

I get the error that a visual does not have sufficient memory to load when trying to create a Table visual. The data has 20K rows, 13 columns. It loads if I install a filter that divides the data. But, I need to see all the data. I suspect it is a particular calculated column that is causing the problem. Can someone let me know if there is a better way to do this formula to help with the memory issues? Thanks!

 

Compliance State = IF(‘Table1’[Days Past Due]>= 90, "Flag 1", IF(‘Table1’[Days Past Due]< 90 && ‘Table1’[Days Past Due]>= 60, "Flag2”, IF(‘Table1’[Days Past Due]<60 && ‘Table1’[Days Past Due]>= 30, "Flag 3", IF(‘Table1’[Days Past Due]< 30 && ‘Table1’[Days Past Due]> 0, "Flag 4", IF(‘Table1’[Days Until Due]<= 0 && ‘Table1’[Days Until Due]> -7, "Flag 5", IF(‘Table1’[Days Until Due]< -7, "Flag 6", " "))))))

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can rewrite this with a SWITCH statement and reverse the order, but the performance will be the same as SWITCH is only syntax sugar for nested IFs

Compliance State = 
SWITCH(TRUE(),‘Table1’[Days Until Due]< -7, "Flag 6",
              ‘Table1’[Days Until Due]<= 0, "Flag 5",
              ‘Table1’[Days Past Due]< 30, "Flag 4",
              ‘Table1’[Days Past Due]< 60, "Flag 3",
              ‘Table1’[Days Past Due]< 90, "Flag2”,
"Flag 1")

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

You can rewrite this with a SWITCH statement and reverse the order, but the performance will be the same as SWITCH is only syntax sugar for nested IFs

Compliance State = 
SWITCH(TRUE(),‘Table1’[Days Until Due]< -7, "Flag 6",
              ‘Table1’[Days Until Due]<= 0, "Flag 5",
              ‘Table1’[Days Past Due]< 30, "Flag 4",
              ‘Table1’[Days Past Due]< 60, "Flag 3",
              ‘Table1’[Days Past Due]< 90, "Flag2”,
"Flag 1")

Thanks for your response. Anyone else know a solution to help with the perfermance?

Run Performance Monitor, grab the query for the visual and then examine that query in DAX Studio. Look for excessive numbers of records. Then refactor your measures as needed.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors