Forum Discussion
Static Yearly Timelines
- Anonymous2 years ago
HI Anonymous,
I'd like to suggest you write a measure expression to check records and return flag, then use it on the 'visual level filter' to filter records who matched with conditions.
Sample formula: check the current report group of records if they include records that match with configured conditions.
Flag = VAR msType = "Requested Date" VAR YearFilter = 2024 VAR currDesc = SELECTEDVALUE ( Table1[Description] ) VAR List = CALCULATETABLE ( VALUES ( Table1[Description] ), FILTER ( ALLSELECTED ( Table1 ), [milestone] = msType && YEAR ( [Date] ) = YearFilter ) ) RETURN IF ( currDesc IN List, "Y", "N" )Regards,
Xiaoxin Sheng
Here is some dummy data, I split the chart into three columns one for milestones, one for description, and one for the date (Based off of the milestone).
The outliers occur when the dates extend past 2024. My initial thought was to write a dax query to just go off of the current year when viewing as these timelines are repeated yearly. However with the outliers this approach does not work.
- Anonymous2 years agoNot applicable
HI Anonymous,
I'd like to suggest you write a measure expression to check records and return flag, then use it on the 'visual level filter' to filter records who matched with conditions.
Sample formula: check the current report group of records if they include records that match with configured conditions.
Flag = VAR msType = "Requested Date" VAR YearFilter = 2024 VAR currDesc = SELECTEDVALUE ( Table1[Description] ) VAR List = CALCULATETABLE ( VALUES ( Table1[Description] ), FILTER ( ALLSELECTED ( Table1 ), [milestone] = msType && YEAR ( [Date] ) = YearFilter ) ) RETURN IF ( currDesc IN List, "Y", "N" )Regards,
Xiaoxin Sheng