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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

using the if statement while ignoring filters

I'm using the expression below on a line chart that includes a month filter as the chart shows data on a monthly basis

Avg(if(Year>=2016,value))

Using the same expression I want to be able to ignore the month filter.

I have previously used set analysis Avg({$<Month=>},value) to ignore the month filter but I'm not sure how to add the if statement

Thanks for your assistance

Regards,

Andy

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Youssef,

I used your expression  as follows and it worked, thanks

Avg({$<Month=>}if(Year>=2016,value ))

View solution in original post

4 Replies
YoussefBelloum
Champion
Champion

Hi,

try this:

Avg({<Year=>}if(Year>=2016,value))

Anonymous
Not applicable
Author

Hi Youssef,

I used your expression  as follows and it worked, thanks

Avg({$<Month=>}if(Year>=2016,value ))

Thiago_Justen_

I guess this will solve it:

Avg ({<Month=>}If (Year>=2016,value))

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_

Too late...

Sorry!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago