Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Optimize Dax

I have a measure which counts the number of days which are applicable toward goals my team has.  it exlcudes holidays and weekends and changes the start date of the slicer to the training date if tha...
  • Mikelytics's avatar
    3 years ago

    Hi Anonymous 

     

    Did you check the following function?

    NETWORKDAYS function (DAX) - DAX | Microsoft Learn

     

    Best regards

    Michael

    -----------------------------------------------------

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

    @ me in replies or I'll lose your thread.

    -----------------------------------------------------

    LinkedIn

  • Mikelytics's avatar
    Mikelytics
    3 years ago

    Hi Anonymous 

     

    Is there a reason why you use the CalculateTable statement in the measure? Because this means in eahc measure calculation you calculate the same thing which increases the amount of preformance required. If it sis so slow can you not pre-calculate the table in Power Query or Dax so that you have a separate physical table you only refer to?

     

    I also see that you have many other values in your visual. Is mabe one of the other measures the performance killer?

     

    Best regards

    Michael

    -----------------------------------------------------

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

    @ me in replies or I'll lose your thread.

    -----------------------------------------------------

    LinkedIn