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
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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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