Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a file from azure datalake that is uploaded in PBI.
PBI automatically creates various scripts, li,ke:
let
Source = DataLake.Contents("adl://tenant.azuredatalakestore.net/Folder/File.csv"),
Navigation1 = Source{0}[Content],
in
Navigation1
However, when refreshing in PBI desktop, the script is transferred to:
let
Source = DataLake.Contents("adl://tenant.azuredatalakestore.net/Folder/File.csv"),
Navigation1 = Source{0}[Content],
#"Imported CSV" = Csv.Document(Navigation1,[Delimiter=":", Columns=19, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Changed Type" = Table.TransformColumnTypes(#"Imported CSV",{{"Column1", type text}, {"Column2", Int64.Type})
in
#"Changed Type"
And this is wrong, it should not change.
How to avoid this?
Thanks,
Johan
Solved! Go to Solution.
When connecting to a data srouce in Power BI Desktop, data type will be changed in Power Query automatically based on your data. If this data type is not what you want, you could change the data type in Power Query and check if this issue persists or not.
let Source = DataLake.Contents("adl://tenant.azuredatalakestore.net/Folder/File.csv"), Navigation1 = Source{0}[Content], #"Imported CSV" = Csv.Document(Navigation1,[Delimiter=":", Columns=19, Encoding=1252, QuoteStyle=QuoteStyle.None]), #"Changed Type" = Table.TransformColumnTypes(#"Imported CSV",{{"Column1", type text}, {"Column2", Int64.Type}) in #"Changed Type"
Regards,
Charlie Liao
When connecting to a data srouce in Power BI Desktop, data type will be changed in Power Query automatically based on your data. If this data type is not what you want, you could change the data type in Power Query and check if this issue persists or not.
let Source = DataLake.Contents("adl://tenant.azuredatalakestore.net/Folder/File.csv"), Navigation1 = Source{0}[Content], #"Imported CSV" = Csv.Document(Navigation1,[Delimiter=":", Columns=19, Encoding=1252, QuoteStyle=QuoteStyle.None]), #"Changed Type" = Table.TransformColumnTypes(#"Imported CSV",{{"Column1", type text}, {"Column2", Int64.Type}) in #"Changed Type"
Regards,
Charlie Liao
User | Count |
---|---|
85 | |
80 | |
77 | |
49 | |
41 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |