Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

DAX optimization

Hi Experts   I am trying to optimize the following DAX measure, not sure if there is a better way to re writre the current measure as the visual assoicated with the measure is close to timing out i...
  • v-alq-msft's avatar
    6 years ago

    Hi, Anonymous 

     

    Here are some suggestions about optimize your model.

    • Remove unused tables or columns, where possible. 
    • Avoid distinct counts on fields with high cardinality – that is, millions of distinct values.  
    • Take steps to avoid fields with unnecessary precision and high cardinality. For example, you could split highly unique datetime values into separate columns – for example, month, year, date, and so on. Or, where possible, use rounding on high-precision fields to lower cardinality – (for example, 13.29889 -> 13.3).
    • Use integers instead of strings, where possible.
    • Be wary of DAX functions, which need to test every row in a table – for example, RANKX – in the worst case, these functions can exponentially increase run-time and memory requirements given linear increases in table size.
    • When connecting to data sources via DirectQuery, consider indexing columns that are commonly filtered or sliced again. Indexing greatly improves report responsiveness.  

     

    For further informatiom, please refer to the official document .

     

    Best Regards

    Allan

     

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