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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nic_k
Frequent Visitor

help with optimizing DAX as visual exceeded available resources

Running into an issue where "Visual exceeded available resources" if i don't filter the data for viewing.

All data is within a single table.

 

This how the table looks like when filtered by Name

nic_k_1-1696401111553.png

 

Here is the DAX:

 

Duration From Previous Task = 
VAR _CurrentTaskTime =
    CALCULATE ( SELECTEDVALUE ( 'task'[Created On] ) )
VAR _PreviousTaskTime =
    CALCULATE (
        MAX (  'task'[Created On]  ),
        ALLEXCEPT ( 'task', 'task'[lead.fullname] ),
         'task'[Created On]  < _CurrentTaskTime
    )
VAR _timeDifference =
    IF (
        ISBLANK ( _PreviousTaskTime ),
        0,
        DATEDIFF ( _PreviousTaskTime, _CurrentTaskTime,DAY )
    )
RETURN
    _timeDifference

 

 

 

 

1 REPLY 1
some_bih
Super User
Super User

Hi @nic_k the link below could help, I hope

https://blog.crossjoin.co.uk/2023/06/18/the-visual-has-exceeded-the-available-resources-error-in-pow... 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.