Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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!
User | Count |
---|---|
18 | |
18 | |
14 | |
13 | |
13 |
User | Count |
---|---|
17 | |
14 | |
11 | |
10 | |
8 |