Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18013

DAX Measure performance

$
0
0

Hello,

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?

 

thanks

 

 


Viewing all articles
Browse latest Browse all 18013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>