Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
i've got some measure that calculate cummulative of [Plan_Ilość], and it's in the calculate column but it is very slow, how can I do that it can be faster ?:
=
var _Rok_mc = Plan_prod_TTL_etap_0[Rok_m-c_2]
var _Kod = Plan_prod_TTL_etap_0[Kod_produktu]
return
CALCULATE(SUM(Plan_prod_TTL_etap_0[Plan_Ilość]);
KEEPFILTERS(
FILTER(
Plan_prod_TTL_etap_0;_Rok_mc>=Plan_prod_TTL_etap_0[Rok_m-c_2]
&&
_Kod=Plan_prod_TTL_etap_0[Kod_produktu])
);Plan_prod_TTL_etap_0)
Still very slow, nothing change and how can I put two or more conditions ?
Hi,
If the calculation is still very slow I suspect that the problem lies elsewhere. There are multiple way to optimize a model and it is hard to explain them here. For now I recommend checking your visuals using the built in report analyzer or using tool like DAX studio or BPA analyzer in tabular editor.
Proud to be a Super User!
I'm in the power pivot and have about 7 000 rows and when wrote the measure I'm waiting and waiting....:
Hi @keny999 ,
I think that your large amount of data and the complexity of the model are causing the calculated column to run slowly, please try to optimize the model. Data reduction techniques for Import modeling
Also, according to the documentation, it is recommended that you create custom columns in Power Query (defined in M) instead of using DAX to create calculated columns, which will improve compression efficiency and reduce refresh time.
Best Regards,
Winniz
Hi,
For running total I recommend this pattern:
Also check this article by SQLBI about the topic:
https://www.sqlbi.com/articles/computing-running-totals-in-dax/
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |