Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

DAX Measure performance


Below are some of measures :
1. Count of student = COUNT(Fact[StudentId])
2. Status = IF([Count of student] =1,"One",IF([Count of student]=2,"two","None"))

(Please do not take above formuls's in business logic context , These are just drafted to understand a question.)


If you review above formulas, [Status] is using [Count of student] multiple time.
I am wondering : Will Power BI engine calculate [Count of student] once or multiple times as it occurs multiple time in [Status] ?


This is related to measure performance optimisation.Above scenario is a imitation of original formula i am using. If inner measure is getting calculated every time it appears in parent formula then there'll be certain performance drop , Right?


Do Power BI engine handling such scenario that if inner measure is occuring multiple times in parent measure then calculate it once only OR it will get multiple times?





Super User IV
Super User IV

It's an interesting question, but not sure how meaningful it is. The alternative would be to use COUNT(Fact[StudentId]) in your second formula in place of [Count of student] and at that point, you are certainly calculating it multiple times so...


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

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors