Join 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!View all the Fabric Data Days sessions on demand. View schedule
Hello All,
I have spent all day today and yesterday trying to solve an issue I have with a calculated column a former colleague made. It is taking extremely long to run over data sets of 300-400k rows, and I haven't been able to solve the issue.
Solved! Go to Solution.
Hi @PJStevens ,
Maybe you can try below formula to create calculated column:
Summed Calculation =
VAR CurrentDateTime = 'Table'[DateTimeKey]
VAR StartTime = CurrentDateTime - TIME(0, 30, 0)
VAR Summed =
CALCULATE(
SUM('Table'[Counter Onderbreking CV]) / 4,
FILTER(
'Table',
'Table'[DateTimeKey] <= CurrentDateTime &&
'Table'[DateTimeKey] > StartTime
)
)
RETURN
IF(Summed = 1, 1, 0)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PJStevens ,
Maybe you can try below formula to create calculated column:
Summed Calculation =
VAR CurrentDateTime = 'Table'[DateTimeKey]
VAR StartTime = CurrentDateTime - TIME(0, 30, 0)
VAR Summed =
CALCULATE(
SUM('Table'[Counter Onderbreking CV]) / 4,
FILTER(
'Table',
'Table'[DateTimeKey] <= CurrentDateTime &&
'Table'[DateTimeKey] > StartTime
)
)
RETURN
IF(Summed = 1, 1, 0)
Best Regards,
Adamk Kong
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 reply. This is indeed the solution I went with, unfortunately, due to the nature of the calculation, I have decided to only apply it to the past 2 months as to not overload it.
I will mark it as solved, as this is essentially the same calculation I am using, but instead of using it on the entire data set, I only use it on the past 2 months.
Thanks anyways for the reply.
Install DAX Studio and then use it to examine the query plan and modify according to your findings.
No need to specify FILTER inside CALCULATE - that will be done for you automatically.
Consider using aggregation functions instead of CALCULATE.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 16 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 22 | |
| 20 | |
| 17 | |
| 12 |