Forum Discussion

Credential's avatar
Credential
Frequent Visitor
4 years ago

Performance semantic model measure vs custom measure

Hello together,
I have a question about custom measures. I have created a measure in my semantic model which is quite slow.
The measure takes about 15 seconds. If I define the same measure as a custom measure in Power BI or DAX Studio, the measure takes only 1 second. Can anyone tell me what is the reason for this?

 

Thanks

11 Replies

      • AlexisOlson's avatar
        AlexisOlson
        Icon for Super User rankSuper User

        Power BI is fundamentally pretty similar to SSAS under the hood but is updated more frequently. In the last couple of years, there have been some optimizations that could potentially make a large difference.

         

        As an example, the May 2020 update improved performance issues I explained here. The October 2021 update also included some optimizations.

         

        If I understand correctly, the latest major version of SSAS is for SQL Server 2019, although there have been "cumulative updates" within the last couple of months.

         

        This is all largely speculation since I don't actually know what your measures are and what versions of things you're running (and even if I did, I'd have to do some deep digging to isolate differences).

  • m3tr01d's avatar
    m3tr01d
    Icon for Continued Contributor rankContinued Contributor

    Credential 
    When you say, the measure takes 15 seconds. How did you come up with that number? 
    Is it when you use the measure inside the report?