The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
So if i understand correctly, for import mode, calculated columns are loaded into the model during a data refresh. And once it's loaded any queries are to the calculated column stored within the local bi file.
But what happens with calculated column in directqueries? Are calculated columns persisted in the data source and when we refresh the visuals it queries the data source every time?
I have created a custom column through power query vs calculated column for directquery and it seems like the calculated column is slower for the report. Any clarifications would help. Thanks.
Solved! Go to Solution.
@wpf_ That is exactly what I think happens behind the scenes, yes.
Hello good morning, the calculated column can be used as the end of a relationship in a composite model?
@wpf_ I don't believe that the values are persisted in the data model or the data source. For example, I added a calculated column to a DirectQuery model and it added a total of about 600 bytes to the data model and added nothing to the data source. So, likely it just stores the formula for the calculated column in the PBIX file in the Data Model.
Thank you.
So does that mean that every time I refresh a visual that contains a measure that references a calculated column, it queries the data source and calculates the calculated column then the measure on demand?
@wpf_ That is exactly what I think happens behind the scenes, yes.
Makes sense. I guess that’s why the calculated column version I had took longer then the custom column version. Thanks!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
80 | |
77 | |
43 | |
39 |
User | Count |
---|---|
150 | |
116 | |
66 | |
64 | |
55 |