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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.