Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
I created a calculated column that I thought wouldnt be overly complex, but it seems to be taking ages to load over "large" datasets (400k+ rows). I tried to split it up into several calculated columns/measures but it didn't improve the overall performance. I also tried to execute it in Power Query, but was unable to create the same calculation within PQ. In some cases, ive had to wait 1+ hour for it to calculate over the whole dataset.
Any tips is greatly appreciated:
Onderbreking =
var StoringsDuur = 30/1440
var CurrenDateTime = 'Leveringszekerheid MI'[DateTimeValue]
var NRowsInRange = ROUNDUP((StoringsDuur*1440)/4,0)
var Summed = CALCULATE(
(SUM('Leveringszekerheid MI'[Counter Onderbreking]))/NRowsInRange,
FILTER(
ALL('Leveringszekerheid MI'),
'Leveringszekerheid MI'[DateTimeValue] <= CurrenDateTime && 'Leveringszekerheid MI'[DateTimeValue] > CurrenDateTime - StoringsDuur
)
)
return
IF(Summed = 1,1,0)
For clarification: DateTimeValue is just the DateTimeKey turned into decimals. Counter Onderbreking is identifying how often our heating curve is under a certain value (this is pre-calculated off imported data columns).
This formula is calculating how often there is an interruption in our network (or in other words, the % of how often we deliver without interruptions).
Thanks in advance!
Hi @PJStevens ,
Use in function Remove all filters from the ‘Leveringszekerheid MI’ table, this can be very resource intensive on large datasets.
You can also use the performance analyzer on the desktop to check which DAX is being used longer.
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
Thanks for the response!
I'm not sure what you mean with "Use in function Remove all filters from the ‘Leveringszekerheid MI’ table, this can be very resource intensive on large datasets.", how would I incorporate this into my formula?
I will use the performance analyzer to see what is causing it to take so long.
Thanks for the response
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 37 | |
| 31 | |
| 27 |