exam questions

Exam DP-600 All Questions

View all questions & answers for the DP-600 exam

Exam DP-600 topic 1 question 163 discussion

Actual exam question from Microsoft's DP-600
Question #: 163
Topic #: 1
[All DP-600 Questions]

You have a query in Microsoft Power BI Desktop that contains two columns named Order_Date and Shipping_Date.

You need to create a column that will calculate the number of days between Order_Date and Shipping_Date for each row.

Which Power Query function should you use?

  • A. DateTime.LocalNow
  • B. Duration.Days
  • C. Duration.From
  • D. Date.AddDays
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
tizian10
3 months ago
Selected Answer: B
Duration.Days(duration) ✅ Extracts the number of days from a duration value. 🔹 Example: Convert a duration to the number of days. powerquery Copy Edit Duration.Days(#duration(5, 12, 30, 0)) 🔹 Output: 5 (because the duration represents 5 days, 12 hours, 30 minutes, and 0 seconds) 📌 Use Case: Used when working with time differences and you only care about the number of days.
upvoted 1 times
...
aks2304
3 months, 2 weeks ago
Selected Answer: B
Duration.Days([Shipping_Date] - [Order_Date])
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 ...