Forum Discussion
Dreadful performance
- 9 years ago
And now I answer my own question.
Nestled in the below is this "GetEarliestFY(Projects[ProjectStartDate])". This is calling a powerbi function that works out the earliest financial year from the provided column. Apart from the fact that this being an function potentially has an overhead I think it is being called for every itteration of the loop along with it's compatriot.
by changing this to #dates on both of those the query finished in a little over 15 seconds. :-) Some work to be done on this I think.
And now I answer my own question.
Nestled in the below is this "GetEarliestFY(Projects[ProjectStartDate])". This is calling a powerbi function that works out the earliest financial year from the provided column. Apart from the fact that this being an function potentially has an overhead I think it is being called for every itteration of the loop along with it's compatriot.
by changing this to #dates on both of those the query finished in a little over 15 seconds. :-) Some work to be done on this I think.