Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

cancel
Showing results for 
Search instead for 
Did you mean: 
andyscslots
Contributor III
Contributor III

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
andyscslots
Contributor III
Contributor III
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))

andyscslots
Contributor III
Contributor III
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