How to make visuals header to show dynamical content?

Insert slicer (or similar visual) and create a mesure. This measure will contain the SELECTEDVALUE function, which “sees” what´s selected in slicer, and shows text dependent on this:

  • Header =
    VAR selection =
        SELECTEDVALUE ( Regions[Country] )
    RETURN
        IF (
            ISBLANK ( selection ),
            “Statistics – total”,
            “Statistics for “ & selection
        )

Then add this measure to visual header and that´s all: