
Dax Test 4
Quiz by Support - BusinessPromoted .com
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
20 questions
Show answers
- Q1What is the purpose of the EARLIER function in DAX?To create time intelligence functionsTo refer to the value of an earlier row contextTo filter a table for earlier periodsTo perform calculations on earlier dates40s
- Q2How can you create a calculated column that shows the cumulative total of sales by month?TOTALYTD(SUM(Sales[SalesAmount]), Sales[Date])CALCULATE(SUM(Sales[SalesAmount]), FILTER(ALL(Sales), Sales[Date] <= EARLIER(Sales[Date])))SUMX(Sales, Sales[SalesAmount])CALCULATE(SUM(Sales[SalesAmount]), DATESYTD(Sales[Date]))40s
- Q3What function would you use to calculate the rank of a product based on sales within a category?RANKX(Sales, Sales[SalesAmount], , DESC, DENSE)RANKX(ALL(Sales), Sales[SalesAmount], , DESC, DENSE)RANK(Sales[SalesAmount])RANK.EQ(Sales[SalesAmount])40s
- Q4How can you handle many-to-many relationships in DAX?Use the USERELATIONSHIP function to create temporary relationshipsUse the RELATEDTABLE function to combine tablesUse the BLANK function to remove duplicatesUse the CROSSFILTER function to manage the relationship40s
- Q5What is the difference between ALL and ALLSELECTED functions?ALL ignores any filters on the table, while ALLSELECTED respects user selectionsALLSELECTED ignores all filters applied by the userALLSELECTED removes row context filtersALL respects user selections, while ALLSELECTED removes all filters40s
- Q6How do you create a measure that calculates the sales growth from the previous year?CALCULATE(SUM(Sales[SalesAmount]), DATESYTD(Sales[Date]))(SUM(Sales[SalesAmount]) - CALCULATE(SUM(Sales[SalesAmount]), SAMEPERIODLASTYEAR(Sales[Date])))/CALCULATE(SUM(Sales[SalesAmount]), SAMEPERIODLASTYEAR(Sales[Date]))(SUM(Sales[SalesAmount]) - SUM(Sales[SalesAmount])) / SUM(Sales[SalesAmount])SUMX(Sales, Sales[SalesAmount]) - SUM(Sales[SalesAmount])40s
- Q7What function would you use to return the last non-blank value in a column?LASTNONBLANKLASTDATELASTVALUELASTBLANK40s
- Q8How can you calculate the total sales for the last 3 months dynamically?CALCULATE(SUM(Sales[SalesAmount]), DATESMTD(Sales[Date]))TOTALMTD(SUM(Sales[SalesAmount]), Sales[Date])CALCULATE(SUM(Sales[SalesAmount]), DATESINPERIOD(Sales[Date], LASTDATE(Sales[Date]), -3, MONTH))DATESBETWEEN(Sales[Date], -3, TODAY())40s
- Q9Which function helps to retrieve the value from a related table?RELATEDRELATEDTABLELOOKUPVALUEEARLIER40s
- Q10How can you handle missing values in DAX calculations?Use the COALESCE functionUse the BLANK functionUse the ISBLANK functionUse the IFERROR function40s
- Q11What is the role of the CALCULATETABLE function?To create table relationshipsTo return a table modified by the filtersTo create calculated columns in tablesTo perform aggregations on tables40s
- Q12How can you apply a filter to a table only during a calculation without modifying the report filter?Use the USERELATIONSHIP functionUse the FILTER function within CALCULATEApply the filter directly to the reportUse the ALL function to remove existing filters40s
- Q13How can you find the earliest date in a column?FIRSTDATESTARTDATEEARLIERMIN40s
- Q14What is the purpose of the CONTAINS function in DAX?To create a logical conditionTo check if a table contains a specific valueTo concatenate stringsTo filter a table based on a condition40s
- Q15How can you count distinct values in a column?COUNTACOUNTDISTINCTDISTINCTCOUNT40s