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 have a big dataset with 1,8 million rows which is in general performing very good but one formula is very slow.
Maybe you have an idea to make it faster.
Volume AutoCreated =
SUMX(
FILTER(
PurchaseOrders,
PurchaseOrders[AutoCreationFlag] = "AutoCreated"
),
PurchaseOrders[ValuePurchasedUSD]
)
Thank you very much for your help 🙂
calculate(sum(PurchaseOrders[ValuePurchasedUSD]),PurchaseOrders[AutoCreationFlag] = "AutoCreated",ALL(PurchaseOrders))
Hi @LillyLegenda ,
Filtering only the column and not the entire table.
Volume AutoCreated =
CALCULATE (
SUM ( PurchaseOrders[ValuePurchasedUSD] ),
FILTER (
ALL ( PurchaseOrders[AutoCreationFlag] ),
PurchaseOrders[AutoCreationFlag] = "AutoCreated"
)
)
Please confirm that PurchaseOrders[ValuePurchaseUSD] is a column in your table, and not a measure. If a measure, please provide the expression for it. If a column, that is a straight forward expression and I am surprised that it is slow. Can you say more about your model (relationships with other tables, visuals on your report page, etc.)?
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@LillyLegenda , Try this
calculate(sum(PurchaseOrders[ValuePurchasedUSD]),FILTER(
PurchaseOrders,
PurchaseOrders[AutoCreationFlag] = "AutoCreated"
))
Thanks, but this is taking the same time maybe longer to load
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |