Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
5 years ago
Solved

Dynamic title with date filter

good I want to create a dynamic title that is "Report for XX/YY" In which XX is the month that I choose in a segmentation of data that I have, it is a segmentation in which I choose the month of...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Syndicate_Admin,

    Did you mean to show the selected month range in your measure? If that is the case, you can tyro to use the following formula:

    Title =
    VAR _list =
        ALLSELECTED ( Table[Date] )
    VAR _min =
        MINX ( _list, [Date] )
    VAR _max =
        MAXX ( _list, [Date] )
    RETURN
        "LINE " & SELECTEDVALUE ( EPLinea[Line] ) & " - CRITICAL REJECTIONS IN PRIMARY CONDITIONING "
            & FORMAT ( _min, "MMM/YYYY" ) & " ~ "
            & FORMAT ( _max, "MMM/YYYY" )

    Regards,

    Xiaoxin Sheng