Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

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?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

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.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

tamerj1
Super User
Super User

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.