PL-300 Model the data • Set 2
PL-300 Model the data Practice Test 2 — 15 questions with explanations. Free, no signup.
After loading the data using the Power Query M code shown in the exhibit, the model contains a table with 10,000 rows. However, when users filter by OrderDate in a report, the filter does not affect the aggregated TotalDue values. What is the most likely reason?
Refer to the exhibit.
Exhibit: Power Query M code snippet
let
Source = Sql.Database("Server01", "AdventureWorks"),
Sales = Source{[Schema="Sales",Item="SalesOrderHeader"]}[Data],
#"Filtered Rows" = Table.SelectRows(Sales, each [OrderDate] >= #date(2020,1,1)),
#"Grouped Rows" = Table.Group(#"Filtered Rows", {"CustomerID"}, {{"TotalDue", each List.Sum([TotalDue]), type nullable number}}),
#"Sorted Rows" = Table.Sort(#"Grouped Rows",{{"TotalDue", Order.Descending}})
in
#"Sorted Rows"