Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
arethaking
Creator II
Creator II

Names

Hi All,

How to show report name as below:

If 2016 is selected then 2016 Current Year Sales

If 2015 is selected then 2015 Sales

if 2016 & JAN is selected then Jan-16 Sales

Thanks in advance.

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Aretha,

Have a look at the attachment.

View solution in original post

5 Replies
Chanty4u
MVP
MVP

tresesco
MVP
MVP

May be like in attached sample.

tamilarasu
Champion
Champion

Hi Aretha,

Have a look at the attachment.

Anonymous
Not applicable

Hi Aretha,

Try this code on the title:

=If(GetSelectedCount(Month)=0 and GetSelectedCount(Year) = 0,'Sales',

    IF(GetSelectedCount(Month)=0,

        If(GetSelectedCount(Year) = 1,

            If(Year = Max({1} Year), 'Current Year Sales',Year &' Sales'),

            Concat(DISTINCT Year,' - ',Year)&' Sales'),

        If(GetSelectedCount(Month) = 1,   

            Month&'-'&Right(Year,2) &' Sales',   

            Concat(DISTINCT  Month&'-'&Right(Year,2),', ',Year*100+Month) &' Sales')

    )

)

Regards!

tamilarasu
Champion
Champion

Aretha,

  I have almost covered all scenarios. Have a loo at the attachment.