Exam QSBA2018 All QuestionsBrowse all questions from this exam
Question 17

Refer to the exhibits.

A business analyst must create a bar chart to show the total value of orders processed per day. The dataset loaded by the data architect only contains the

OrderNo, OrderDateTime, and OrderAmount.

The business analyst creates a calculated field, OrderDate, using the expression, Date(OrderDateTime). The bar chart does NOT present the information correctly.

How should the business analyst fix the error?

    Correct Answer: B

    The issue is that the time component is still present in the OrderDate field, which results in the bar chart showing each timestamp rather than grouping orders by date. The `Date` function in the initial calculated field does not eliminate the time portion. Using `Date(Floor(OrderDateTime))` effectively strips the time part from the OrderDateTime, leaving only the date. This ensures that orders on the same date are correctly aggregated in the bar chart.

Discussion
peachmanOption: B

A) Incorrect because the 'Date' Format will still keep the time element. B) Correct because you need to remove the time element from the date values using the floor value C) INcorrect as this will NOT remove the time element just hide it. D) Incorrect LTrim is not going to work due to dates being numbers not strings.

elipsaOption: C

C. Change the OrderDate field type to 'Date' in the format 'YYYY-MM-DD' in the data manager.