cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
davidwsw
Frequent Visitor

Difference between changing data type in query editor versus in data view

While in data view, I changed the data type for one of my columns from the default (any) to True/False. When I went to the query editor, the data type was still the default and that got me confused. Is there a difference between setting a data type in the query editor versus in the data view?

 

In data view:

Data view.png

 

In query editor:

Query Editor.png

2 ACCEPTED SOLUTIONS
ankitpatira
Community Champion
Community Champion

@davidwsw Yes there is a difference. Any steps / transformations you apply at the query editor level will be iterated through each time you refresh / data is sourced from the source and so that will reflect through in Data view. Any changes you make in Data view doesn't add a step in the list of steps for query editor and so you don't see that change when you go to query editor.

 

In short, changes made in query editor are all performed on data when it comes from the source while in Data view those changes are applied once data is imported into power bi desktop.

View solution in original post

@ankitpatira What is the advantage of one over the other? Does it mean that doing it in data view results in better performance?

View solution in original post

4 REPLIES 4
ankitpatira
Community Champion
Community Champion

@davidwsw Yes there is a difference. Any steps / transformations you apply at the query editor level will be iterated through each time you refresh / data is sourced from the source and so that will reflect through in Data view. Any changes you make in Data view doesn't add a step in the list of steps for query editor and so you don't see that change when you go to query editor.

 

In short, changes made in query editor are all performed on data when it comes from the source while in Data view those changes are applied once data is imported into power bi desktop.

@ankitpatira What is the advantage of one over the other? Does it mean that doing it in data view results in better performance?

@davidwsw I am not 100% sure but I think if you do lots of transformations via query editor it may take longer than you do in the desktop as each transformation via query editor results in a step that gets applied each time you refresh data / import data. For a change like data type change I don't think it should be a big issue and so doing it in either is fine. I would do it in Data view so that data coming from the source in power bi is as raw as it is in source.

Hello,

 

@ankitpatira, you say keeping the data as raw as it is in source. Is it a guideline and/or a good pratice? I thought the reason data transformation exists is to use it as much as possible.

 

Any other advantages to use one over the other?

 

Thank you

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors