Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
9 |
User | Count |
---|---|
16 | |
15 | |
15 | |
13 | |
11 |