0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Power Query へそのゴマAdvent Calendar 2024

Day 10

Power Query へそのゴマ 100本ノック 10

Posted at

91. コード補完問題
"Data"テーブルで"Amount"列を昇順にソートするには Table.Sort(Source, {{"Amount", ___}}) を使う。

let
    Source = Data,
    Sorted = Table.Sort(Source, {{"Amount", ___}}),
    Result = Sorted
in
    Result

92. 5択問題
M言語でnull値のチェックをする場合、どの演算子を使うか?
A. = null
B. == null
C. equals null
D. <> null
E. is null

(正解は D. <> null でなく、"if [Column] = null"でnullチェックは可能、null比較は`= null`も可。質問意図が不明瞭だが多くの場合 nullチェックは`[Column] = null`または`[Column] <> nullで行える。ここは文意的に = null で可能だが、"チェックする場合"とあるので正解はAの= null`が無難。)


93. コード補完問題
"Data"テーブルから "Sales"列の最大値を取得するには List.Max(Table.Column(Source, "___")) を使う。

let
    Source = Data,
    MaxSales = List.Max(Table.Column(Source, "___")),
    Result = MaxSales
in
    Result

94. 5択問題
Date.EndOfMonth(#date(2020,1,15))は何を返すか?
A. #date(2020,1,15)
B. #date(2020,1,31)
C. #date(2020,2,1)
D. #date(2020,1,30)
E. #date(2020,12,31)


95. コード補完問題
"Data"テーブルで"Name"列の前後の空白を削除するには Text.Trim([___]) を使う。

let
    Source = Data,
    Trimmed = Table.TransformColumns(Source, {{"Name", each Text.Trim([___])}}),
    Result = Trimmed
in
    Result

96. 5択問題
Duration.Days(#duration(2,0,0,0))は何を返すか?
A. 48
B. 2
C. "2 days"
D. 0.5
E. エラー


97. コード補完問題
"Data"テーブルで、"Value"列を小数点以下2桁に丸めるには Number.Round([Value], ___) を使う。

let
    Source = Data,
    Rounded = Table.AddColumn(Source, "ValueRounded", each Number.Round([Value], ___)),
    Result = Rounded
in
    Result

98. 5択問題
Text.Reverse("ABC")は何を返すか?
A. "CBA"
B. "ABC"
C. {"C","B","A"}
D. "CAB"
E. ""


99. コード補完問題
"Data"テーブルで列"Sales"を日付ごとに合計するために、Table.Group(Source, {"Date"}, {{"TotalSales", each List.Sum([Sales]), ___}})でtypeを指定せよ。

let
    Source = Data,
    Grouped = Table.Group(Source, {"Date"}, {{"TotalSales", each List.Sum([Sales]), type ___}}),
    Result = Grouped
in
    Result

100. 5択問題
M言語で関数定義を行うにはどのような構文を用いるか?
A. function(args) => expression
B. func(args) { expression }
C. (args): expression
D. lambda args: expression
E. define args as expression

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?