Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, a simple question.
For my analysis I have a main table and a summarized version of it.
I have two options:
1. clone the main table in query editor and make the grouping in there
2. use the SUMMARIZECOLUMS in DAX to group data in modeling
The only difference that I can spot is that with the option 1, when I update the dataset, the data is loaded two times fully, so time to update is longer.
Is there any other difference in terms of performances? Thanks
Hi @Anonymous
Thanks
Raj
@Anonymous wrote:Hi @Anonymous
- When you load the table in Query Editor, you are bringing the data physically to the model, so the size of your report increases.
- Also, duplicating the source will result in another DB hit. ( You can use reference option to avoid this)
- In other hand, DAX is dynamic . If you use it in calculated table/ column, it will be calculated once the model is loaded
- If you use the calculation in Measure, it is dynamic and doesnt store physically .
Thanks
Raj
Hi Raj
What is the reference option you mention to avoid re-loading the same table?
Re calculation, i know the difference between a calculated column and a measure, but that's not hte question. The question is the difference between cloning the *table* in powerquery or creating a new table through DAX (*not* calculatetable - which is a runtime measure, but table=SUMMARIZE)
When you right click the table in power Query, you can see the below option. Use this Reference option to clone the table, which will avoid the second DB hit.
In my understanding - Creating a summary table in dax and in Power Query using Reference , both consumes same memory but doing it in DAX using SUMMARIZE is flexible and suggested best practice.
Hope this helps.
Thanks
Raj
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |