Given a slicer on the 'ProductCategory' column with multiple categories selected, what will the following DAX measure return?
Selected Category = SELECTEDVALUE('Product'[ProductCategory], "Multiple")Selected Category = SELECTEDVALUE('Product'[ProductCategory], "Multiple")
Think about what SELECTEDVALUE returns when more than one value is selected.
SELECTEDVALUE returns the single selected value if only one is selected. If multiple values are selected, it returns the alternate result, here "Multiple".
What will the following DAX expression return when the report is filtered to exactly one 'Region'?
Is Single Region = HASONEVALUE('Sales'[Region])Is Single Region = HASONEVALUE('Sales'[Region])HASONEVALUE returns TRUE only if exactly one distinct value is in the current filter context.
Since the report is filtered to exactly one 'Region', HASONEVALUE returns TRUE.
You want to create a dynamic title for a report page that shows the selected 'Year' if only one year is selected, or "Multiple Years" if more than one year is selected. Which DAX measure correctly achieves this?
HASONEVALUE checks if exactly one value is selected. SELECTEDVALUE returns that value or alternate.
Option D correctly uses HASONEVALUE to check for a single year and returns that year; otherwise, it returns "Multiple Years".
A measure uses SELECTEDVALUE to get the selected 'Customer'[Name], but it returns blank even when one customer is selected. What is the most likely cause?
Selected Customer = SELECTEDVALUE('Customer'[Name])SELECTEDVALUE returns blank (no alternate specified) if the filter context has more than one distinct value for the column.
Even when one customer appears to be selected, the filter context likely includes multiple customers (e.g., due to other slicers, cross-filters, or visual interactions), resulting in multiple distinct values for 'Customer'[Name].
In a report with multiple slicers and complex filter context, which statement best describes the difference between SELECTEDVALUE and HASONEVALUE?
Think about what each function returns and their purpose in filter context evaluation.
SELECTEDVALUE returns the single selected value or an alternate if multiple or none are selected. HASONEVALUE returns TRUE if exactly one distinct value exists in the filter context, otherwise FALSE.