Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Dynamic title with date hierarchy

Hi,

I want the title of a bar chart to show "Yearly sales" when I am at the yearly level, "Quarterly sales" when I am at the quarter level and so on. 
I have tried this:

Average mm/hr title =
 
    SWITCH (
        TRUE (),
        ISFILTERED('Date'[Year]),
            "Yearly sales",
        ISFILTERED('Date'[Quarter number]),
            "Quarterly sales",
        ISFILTERED('Date'[Month No]),
            "Monthly sales",
        BLANK ()
    )



2 Replies