Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dax Question about resources

Hi, I have a question about writing DAX and using it in reports.

When you write a dax measure, but not reference it in the report you're building, slow the report?

Or do DAX measures take a hit on resources only if they're referenced in the report itself?

I want to build a series of reusable dax measures as templates, drop them in the report so that can be used and reused by others. Wondering if this causes the report to slow or a resource hit occurs?

Is it better that I remove all dax code that isn't used in the report?

  • Hi Anonymous 
    DAX measures are calculated only if referenced. However, always clean your file and reports and keep only relevant data and measures. I've seen files with tens and sometimes hundreds of measures, cannot describe how ugly and confusing that is. You can create calculation groups to reduce the number of measures.

2 Replies

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 
    DAX measures are calculated only if referenced. However, always clean your file and reports and keep only relevant data and measures. I've seen files with tens and sometimes hundreds of measures, cannot describe how ugly and confusing that is. You can create calculation groups to reduce the number of measures.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for the response.  I suspected that was the case but I wanted to confirm that. 
    Appreciate!