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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I have this DAX query:
Hi @Justas4478 try to remove "+0" and compare your performance, eventually update your "solution"
Proud to be a Super User!
@some_bih that reduced load time massively.
However it brings back probem that I had before.
Since I have this measure:
Is there any way to implement '+0' without creating massive time increase or to make 0 show up as 0 and not blank?
Hi @Justas4478
without model and relationships, it is hard to spot issue. Still try to replace VAR _Table with below code
VAR _Table =
ADDCOLUMNS(
SUMMARIZE(
'Outbound Delivery',
'Product Category'[Level 2],
'Date'[Date])
,
"@Shorted", 'Outbound Delivery'[Shorted Qty])
Proud to be a Super User!
@some_bih It definitelly made query much faster, but it still fails to load larger amount amount of data faster or because of this:
Hi @Justas4478 without model and relationships, it is hard to spot issue.
Proud to be a Super User!
@some_bih The one thing I noticed if I remove
This from the table rows:
It loads data almoust instantly.
This is realationship between 'Product' table and 'Outbound Delivery' table that holds query.
Because it is using live data model I can't do any changes to set realationships.
I dont know is this any helpfull.
Hi @Justas4478 not enought to provide some solution from my side 🙂
Play a bit with CALCULATETABLE so you filterout blank result (combination measure without +0 and filter <> blank rows for text column
Proud to be a Super User!
Hi @Justas4478 ,
As far as I know, the summarize() function creates a table, and creating a table is an operation that generally consumes a large amount of time, so you might consider optimizing performance by removing extended columns from summarize() and adding them using the addcolumns() function.
Optimize SUMMARIZE with ADDCOLUMNS in Dax #ssas #tabular #dax #powerpivot - SQLBI
Best practices using SUMMARIZE and ADDCOLUMNS - SQLBI
There are also some suggestions for optimizing the model here:
You can use DAX Studio to optimize the inspection of DAX statements from a performance perspective and use the Performance analyzer to check the performance of each of your report elements when users interact with them, and which aspects of performance consume the most (or least) resources
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-performance-analyzer
This is the related document, you can view this content:
Optimizing DAX expressions involving multiple measures - SQLBI
Improve Power BI Performance by Optimizing your DAX | by MAQ Software | MAQ Software | Medium
All the secrets of SUMMARIZE - SQLBI
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Thanks I will try your suggestions.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 45 | |
| 35 | |
| 34 | |
| 21 |
| User | Count |
|---|---|
| 143 | |
| 122 | |
| 100 | |
| 80 | |
| 57 |