You have a sales dataset with a date field. Using a date hierarchy (year, quarter, month, day), which DAX expression correctly calculates the total sales for the current quarter?
Remember to use CALCULATE with FILTER and ALL to remove filters on the date table.
Option A uses CALCULATE with FILTER and ALL to correctly filter the date table to the current quarter and year, ignoring all date filters from context. Option A uses shorthand syntax which does not fully remove other date column filters (e.g., month slicer). Option A uses incorrect syntax for accessing quarter in DAX. Option A is invalid syntax.
You want to show sales trends over time using a date hierarchy (year, quarter, month, day). Which Tableau visualization type is best suited for this purpose?
Think about how to show changes over time clearly.
A line chart with the date hierarchy on the x-axis clearly shows trends over time, allowing drill-down from year to day. Pie charts and bar charts are less effective for time trends. Scatter plots do not show time progression.
Which of the following is the best practice when designing a date dimension table to support a date hierarchy (year, quarter, month, day) in a BI model?
Think about how hierarchies work in BI tools.
Option D is best because separate columns for each level of the hierarchy allow easy filtering and grouping. Option D and C make it hard to create hierarchies. Option D reduces flexibility and performance.
A user reports that when drilling down from year to quarter in a Tableau dashboard, the quarters do not display correctly and some months are missing. What is the most likely cause?
Check the data type of the date field in Tableau.
If the date field is not recognized as a date type, Tableau cannot correctly build the hierarchy, causing missing or incorrect quarters and months. Missing data or filters would not cause quarters to be missing in the hierarchy. Fiscal vs calendar quarters would change labels but not cause missing months.
Given the following DAX measure to calculate sales for the current month in a date hierarchy, what error will occur?
CurrentMonthSales = CALCULATE(SUM(Sales[Amount]), FILTER(ALL('Date'), 'Date'[Month] = MONTH(TODAY())))CurrentMonthSales = CALCULATE(SUM(Sales[Amount]), FILTER(ALL('Date'), 'Date'[Month] = MONTH(TODAY())))
Consider what happens when filtering only by month number without year.
The measure filters all dates where the month equals the current month number, but does not restrict the year. This causes sales from all years in that month to be included. There is no syntax or type error. ALL('Date') removes filters but FILTER reapplies the month filter.