Forum Discussion

mjmar025's avatar
mjmar025
Helper I
7 years ago
Solved

Model Performance Enhancements?

Hi everyone,   I am looking to speed up a Power BI report that I have with a model that contains around 400k rows. I am pulling in the lowest level of data that my organization captures, but that l...
  • MattAllington's avatar
    MattAllington
    7 years ago

    It’s very hard to say without seeing it.  Every relationship has a cost, and the cost is higher the higher the cardinality of the related columns. So you can improve things by removing high cardinality relationships.  This could be done by consolidating fact tables. 

     

    Options I think worthy of consideration include

    Removing columns in fact tables that are not used

    Unpivoting columns in fact tables 

    Consolidating fact tables together

     

    Eg

     

    if you can have 1 fact table with columns

    type, amount

    target, 5

    actual, 4

    other fact, 3

    etc, 8

     

    then you can write 

    Total target = calculate(sum(table[amount]),table[type=“target”)

    Total actual = calculate(sum(table[amount]),table[type=“Actual”)

    Divide([total actual],[total target])