Forum Discussion

Mitchell92's avatar
Mitchell92
Icon for Helper II rankHelper II
2 years ago
Solved

Inefficient DAX Formula - need assistance please

Hi all,   Just hoping to receive some assistance relating to a DAX formula that is causing a "Visual has exceeded the available resources" issue (seemingly due to inefficient formula).   In short...
  • lbendlin's avatar
    lbendlin
    2 years ago
    3.1 TIMETOCONTACT =
    COALESCE (
        CALCULATE (
            AVERAGE ( CONLINE2[CONTACTEDTIME] ),
            USERELATIONSHIP ( CONLINE2[EVENTREGUSER1100], EMPMASA2[EMF_USERID] )
        ),
        CALCULATE (
            AVERAGE ( CONLINE2[CONTACTEDTIME] ),
            USERELATIONSHIP ( CONLINE2[EVENTREGUSER1100], EMPMASA2[EMF_USERID] ),
            REMOVEFILTERS ( EMPMASA2[FULL NAME] )
        )
    )

    Not sure what else is going on in your data model but the relationships should be single directional.

     

    Give it a whirl and see if this is any better. Note that I didn't touch 4.1 so you can compare.

     

    Next step would be to fire up DAX Studio and test the queries against the actual data .