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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Measure

Hi there,

 

I was wondering if anyone could enlighten me as to how a variable in a measure is handled when loading/refreshing.

 

Does it only calculate the variable once as you load the report/datamodel - and in terms reduce the general load/optimize the measure?  

 

Thanks in advance!

1 ACCEPTED SOLUTION
Hariharan_R
Solution Sage
Solution Sage

Hi @Anonymous 

As the measure is dynamic and it will be executed when it is being used in any visuals on a page. If you refresh a page then measures within the page will execute. Generally, variables will help to break down the complex logic into small pieces and also help you to improve the performance when you need to perform repeatative business logics.

Ref - https://docs.microsoft.com/en-us/dax/best-practices/dax-variables

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


View solution in original post

1 REPLY 1
Hariharan_R
Solution Sage
Solution Sage

Hi @Anonymous 

As the measure is dynamic and it will be executed when it is being used in any visuals on a page. If you refresh a page then measures within the page will execute. Generally, variables will help to break down the complex logic into small pieces and also help you to improve the performance when you need to perform repeatative business logics.

Ref - https://docs.microsoft.com/en-us/dax/best-practices/dax-variables

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.