Forum Discussion

ChrisCarrVictra's avatar
ChrisCarrVictra
Regular Visitor
2 years ago
Solved

Dax CPU Optimization for Capacity

Hello,   I inherited a report that is performing extremely poorly from a CPU usage and constantly making our capacity auto scale daily. I am wondering if there is a defined best practice when tryin...
  • Greg_Deckler's avatar
    2 years ago

    ChrisCarrVictra This may give you better performance but it sounds like you need to optimize your Overall Points measure:

    VAR Summary =
        SUMMARIZE (
            CALCULATETABLE( 'Stores', 'Stores'[Area] IN { "East", "West" }, 'Stores'[StoreName] <> "VA-Bluefield" ),
            Stores[StoreName],
            "Overall Points", [Overall Points]
        )
    RETURN
        RANKX (
            Summary,
            [Overall Points],, DESC
        )
  • Anonymous's avatar
    Anonymous
    2 years ago

    Your point of view is great Greg_Deckler . I have the following additions:

    Hi, ChrisCarrVictra 

    If you need to optimize your complex DAX expressions, you can refer to the following article:

    Optimizing DAX expressions involving multiple measures - SQLBI

     

    In the following articles, there are tutorials for optimizing different DAX functions:

    Optimization - SQLBI

     

     

     

     

    How to Get Your Question Answered Quickly

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

    Best Regards

    Jianpeng Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.