>> Download the sample (Power BI)
This sample shows the latest (or maximum) date taken by each of a questionnaire’s participants.
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Questionnaire
Section titled “Measures - Questionnaire”Max Date (Measure)
Section titled “Max Date (Measure)”Max Date (Measure) =VAR CurrentName = SELECTEDVALUE ( Questionnaire[Name] )RETURN MAXX ( FILTER ( ALL ( Questionnaire ), Questionnaire[Name] = CurrentName ), Questionnaire[Date Taken] )Calculated Columns
Section titled “Calculated Columns”Max Date
Section titled “Max Date”Max Date =VAR CurrentName = Questionnaire[Name]RETURN MAXX ( FILTER ( ALL ( Questionnaire ), Questionnaire[Name] = CurrentName ), Questionnaire[Date Taken] )Tables
Section titled “Tables”Calendar_Table
Section titled “Calendar_Table”Calendar_Table =GENERATE ( CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ), VAR currentDay = [Date] VAR Day = DAY ( currentDay ) VAR Month = MONTH ( currentDay ) VAR Year = YEAR ( currentDay ) RETURN ROW ( "Day", day, "Month", month, "Year", year ))