Forum Discussion

alexei7's avatar
alexei7
Continued Contributor
8 years ago
Solved

Poorly performing DAX help

Hi,   I've been getting the "Resources Exceeded" messages on one of the visualisations in a report i've published and hoping someone can help.   The DAX is as follows:   Fundraising Pages PYTD ...
  • alexei7's avatar
    alexei7
    8 years ago

    It turned out that having an intermediary table was causing the performancy issues.

     

    A simplified version of my data model looks like this:

     

    Date Dimension --- Page ---- Fundraising Page

     

    Thankfully I was able to change the COUNTROWS to count the "Page" table not the "Fundraising Page" table - and by adding an extra filter, achieve almost the same result.

     

    We guessed that maybe there was some kind of loop caused by the combination of the TOTALYTD and SAMEPERIODLASTYEAR functions (as well as the data model obviously) which meant that the performance was so slow.