Forum Discussion
ppvinsights
6 years agoHelper III
DAX formula crashes current Power BI Desktop Version
Hi, I have a table with telephon calls logs. If have asterix verbs for "PAUSE" and "UNPAUSE". I want to calculate the pause times. The table has columns: - index (unique, ascending) - queue (type...
- 6 years ago
Hi ppvinsights
Please see the attached file with a solution in Power Query
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
6 years agoCommunity Champion
Hi ppvinsights
Try this, if still too slow we can try Power Query
PauseNextIndex =
IF (
FaktPascomQueueLog[verb] = "PAUSE";
VAR curIdx = FaktPascomQueueLog[Index]
RETURN
CALCULATE(
MAX( FaktPascomQueueLog[Index] );
ALLEXCEPT(
FaktPascomQueueLog;
FaktPascomQueueLog[agent]; FaktPascomQueueLog[queue] );
FaktPascomQueueLog[Index] > curIdx;
FaktPascomQueueLog[verb] = "UNPAUSE"
);
BLANK ()
)
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
Mariusz
6 years agoCommunity Champion
Hi ppvinsights
Please see the attached file with a solution in Power Query
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- ppvinsights6 years agoHelper III
Thanks a lot - I am little bit confused, why this calculation is to hard for Power BI... But ok 🙂
- Mariusz6 years agoCommunity Champion
Hi ppvinsights
No problem, it is considered best practice to do your column, table transformations in Power Query, in your case the number of rows and the type of the calculation probably was hard on the engine.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn