PL-300: Microsoft Power BI Data Analyst

35%

Question 121

Which of these DAX function categories loops through the same calculation on each row of a table, then aggregates the results?
Logical Functions
Filter Functions
Stats Functions
Iterator Functions




Answer is Iterator Functions

Iterator (or “X”) functions allow you to loop through the same calculation on each row of a table, and then apply some sort of aggregation to the results (SUM, MAX, etc.).

Question 122

Which of the following functions modifies and overrules any competing filter context?
CALCULATE
SUMX
RELATED
REPLACE




Answer is CALCULATE

CALCULATE modifies and overrules any competing filter context!

Question 123

Which of the following functions removes filter context?
CALCULATE
ALL
FILTER
All of the above




Answer is ALL

Instead of adding filter context, ALL removes it; use it when you need unfiltered values that won’t react to changes in filter context (i.e. % of Total, where the denominator needs to remain fixed)

Question 124

Which of the following functions returns a table?
TOPN
FILTER
DATEADD
All of the above




Answer is All of the above

All of these functions return tables.

Question 125

Which of the following is NOT true about CALCULATE modifiers?
They are used to change filter context
They are used to access inactive table relationships
They allow you to drag and drop fields rather than write DAX from scratch
They are used to change the way filters propagate




Answer is They allow you to drag and drop fields rather than write DAX from scratch

Quick measures allow you to drag and drop fields rather than write DAX from scratch. The rest are all use cases for CALCULATE modifiers.

Question 126

Which of the following functions allows you to calculate running totals?
DATESYTD
DATEADD
DATESINPERIOD
All of the above




Answer is DATESINPERIOD

DATESINPERIOD allows you to calculate running totals. DATESYTD is allows you to calculate performance to-date, and DATEADD allows you to calculate for a previous period.

Question 127

You have a table named Sales. Sales contains the data shown in the following table.

You have the following measure.
Total Sales This Year = SUM([Total Sales])
You plan to create a KPI to compare the current yearly sales to the previous year as shown in the exhibit.

You need to create the measure for the goal.
How should you complete the DAX formula?




Answer is CALCULATE - DATEADD

References:
https://msdn.microsoft.com/query-bi/dax/dateadd-function-dax

Question 128

You have a Power BI model that contains the following two tables:
- Sales(Sales_ID, sales_date, sales_amount, CustomerID)
- Customer(CustomerID, First_name, Last_name)

There is a relationship between Sales and Customer.
You need to create a measure to rank the customers based on their total sales amount.

Which DAX formula should you use?
RANKX(ALL(Sales), SUMX(RELATEDTABLE(Customer), [Sales_amount]))
TOPN(ALL(customer), SUMX(RELATEDTABLE(Sales), [Sales_amount]))
RANKX(ALL(customer), SUMX(RELATEDTABLE(Sales), [Sales_amount]))
RANK.EQ(Sales[sales_amount], Customer[CustomerID])




Answer is RANKX(ALL(customer), SUMX(RELATEDTABLE(Sales), [Sales_amount]))

You need to rank customers on the basis of sale amount and not sale

References:
https://msdn.microsoft.com/query-bi/dax/rankx-function-dax
https://community.powerbi.com/t5/Desktop/RANKX-function-with-ALL/td-p/660999

Question 129

You have a Power BI model that contains the following two tables:
- Sales (Sales_ID, DateID, sales_amount)
- Date(DateID, Date, Month, Week, Year)

The tables have a relationship.
You need to create a measure to calculate the sales for same period from the previous year.

Which DAX formula should you use?
SUM(sales[sales_amount]) - CALCULATE(SUM(sales[sales_amount]), DATESYID('Date'[Date]))
CALCULATE(SUM(sales[sales_amount]), SAMEPERIODLASTYEAR('Date'[Date]))
SUM(sales[sales_amount]) "" CALCULATE(SUM(sales[sales_amount]), SAMEPERIODLASTYEAR('Date'[Date]))
CALCULATEx(SUM(sales(sales_amount]), DATESYID('Date'[Date]))


Question 130

You have a Power BI model that has a date table. A sample of the data shown in the following table.

You need to add a column to display the date in the format of December 01, 2014.

Which DAX formula should you use in Power BI Desktop?
FORMAT([Date], "MMM") & " " & FORMAT([Date], "DD") & ", " & FORMAT([Date], "YYYY")
FORMAT([Date], "M") & " " & FORMAT([Date], "D") & ", " & [Date].[Year])
[Date].[Month] & " " & FORMAT([Date], "D") & ", " & [Date].[Year])
FORMAT([Date], "MMMM DD, YYYY")




Answer is FORMAT([Date], "MMMM DD, YYYY")

FORMAT function using “MMM” produces the short name version of month (eg. Jan, Feb, Mar etc.). If the full month name is required, simply replace “MMM” with “MMMM”

< Previous PageNext Page >

Quick access to all questions in this exam