exam questions

Exam 70-779 All Questions

View all questions & answers for the 70-779 exam

Exam 70-779 topic 1 question 68 discussion

Actual exam question from Microsoft's 70-779
Question #: 68
Topic #: 1
[All 70-779 Questions]

DRAG DROP -
You have a workbook query that gets data from a table in a Microsoft Azure SQL database. The table has a column named Phone. The values in Phone are in a format of 999-999-9999. The first three digits of each phone number represent the area code, and the rest of the digits represent the local phone number.
You need to split the Phone column into two columns. The first column must contain the area code, and the second column must contain the local phone number.
How should you complete the query? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all.
You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
imran
Highly Voted 5 years, 7 months ago
wrong answer. it is table.splitcolumn = Table.SplitColumn(#"Added Custom1", "phone", Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.Csv, true), {"phone.1", "phone.2"})
upvoted 25 times
Tr4ckz
5 years, 5 months ago
Confirmed - tested. If you want to test it yourself, you can ommit the QuoteStyle.Csv,tue/false arguments as both are optional arguments (and missing file might cause an error)
upvoted 3 times
...
AlkaLei
5 years, 3 months ago
Confirmed and tested!
upvoted 2 times
...
hfgirona
4 years, 6 months ago
Tested,Correct are: SplitColumn and SplitTextbyEachDelimiter.= Table.SplitColumn(#"Changed Type", "Phone", Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.None, false), {"Area code", "Phone"})
upvoted 1 times
...
...
dinessa
Highly Voted 5 years, 5 months ago
Why after each delimiter, we need only the area code separated , right? So it should be SplitColumn and AfterDelimiter.
upvoted 12 times
r8d1
4 years, 10 months ago
I have the same question. why after each delimiter? Won't this return 3 columns? Splitter.SplitTextByEachDelimiter: Returns a function that splits text into a list of text at each specified delimiter in sequence.
upvoted 4 times
kwmmss
4 years, 3 months ago
What denotes Split at Left Most, Right Most, or Each delimiter is not the name of the function but what comes after Quotestyle CSV. False is left most, True is right most, blank is each delimiter.
upvoted 1 times
...
...
...
CDL
Most Recent 4 years, 6 months ago
Tested. I just performed it in PQ editor, the the code from tab "Advanced Editor." 1. TransformColumnTypes -> to “Text” #"Changed Type" = Table.TransformColumnTypes(Source,{{"PhoneNumber", type text}}), 2. Split column (leftmost, by delimiter “-“) Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.Csv, false), {"PHONE.1", "PHONE.2"}),
upvoted 3 times
...
CDL
4 years, 7 months ago
let Source = Excel.CurrentWorkbook(){[Name="PhoneNum02"]}[Content], #"Changed Type" = Table.TransformColumnTypes(Source,{{"PhoneNumber", type text}}), #"Duplicated Column" = Table.DuplicateColumn(#"Changed Type", "PhoneNumber", "PhoneNumber - Copy"), #"Renamed Columns" = Table.RenameColumns(#"Duplicated Column",{{"PhoneNumber - Copy", "PHONE"}}), #"Split Column by Delimiter" = Table.SplitColumn(#"Renamed Columns", "PHONE", Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.Csv, false), {"PHONE.1", "PHONE.2"}), #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"PHONE.1", Int64.Type}, {"PHONE.2", type text}}), #"Renamed Columns1" = Table.RenameColumns(#"Changed Type1",{{"PHONE.1", "Area"}, {"PHONE.2", "Phone"}}) in #"Renamed Columns1"
upvoted 1 times
...
PowerLjubica
4 years, 11 months ago
It is Table.SplitColumn.
upvoted 1 times
...
Mar_tin
4 years, 11 months ago
By using the easygoing Power Query Tool "Split Columns" (Transform Group) & split at Left-most delimiter(-) it provided the expected result: = Table.SplitColumn(#"Changed Type", "Phone", Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.Csv, false), {"Area Code", "Phone Number"})
upvoted 2 times
...
KyberOp
5 years, 3 months ago
Table.TransformColumn is not a valid function in the PQ editor. There is only TransformColumn(s). The correct answer is Table.SplitColumns. I just tested this.
upvoted 1 times
...
mandarmanik
5 years, 3 months ago
The answer is: Table.AfterDelimeter(#"Changed Type", Phone,Splitter.SplitTextByEachDelimiter({"- "},QuoteStyle.Csv,false),{"Area Code","Local Phone"}) =Phones.AfterDelimeter(#"Changed Type", Phone,Splitter.SplitTextByEachDelimiter({"- "},QuoteStyle.Csv,false),{"Area Code","Local Phone"})
upvoted 1 times
nose
5 years, 3 months ago
totally wrong.... My understanding is that "AfterDelimiter" works with "Text" not with "Table"
upvoted 1 times
...
...
mohroshdy
5 years, 5 months ago
First value is SplitColumn Second is correct
upvoted 2 times
...
tho
5 years, 5 months ago
The answer should be Table.SplitColumn(#"Added Custom1", "phone", Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.Csv, false), {"phone.1", "phone.2"})
upvoted 1 times
...
dinessa
5 years, 6 months ago
It still does not seem to work. Can anyone help with this one?
upvoted 1 times
...
dinessa
5 years, 6 months ago
Shouldn't it be TransformColumns instead of TransformColumn? https://docs.microsoft.com/en-us/powerquery-m/table-transformcolumns
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago