Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Static Yearly Timelines

Hello,  I have a sort of unique challenge that I am hoping to get some support on. I have a list of reporting deadlines which have static due dates. I would like to add these timelines to my Power...
  • Anonymous's avatar
    Anonymous
    2 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