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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
vardhancse
Specialist III
Specialist III

Ignore Dimension-Filter for If Statement in Pivot Table & Combo Chart

Hi,

I have one requirement, like ignore month and year filters for if condition expressions:

Expression:

IF(WildMatch(MonYY,'*18','Jan-19'),
Sum({<Type={'1'}>}Volume),
Count({<B={'1'}>}ID))

Tried:

Solution 1:

IF(WildMatch(MonYY,'*18','Jan-19'),
Sum({<Type={'1'},Year=,MonthName=>}Volume),
Count({<B={'1'},Year=,MonthName=>}ID))

Solution 2:

IF(WildMatch(MonYY,'*18','Jan-19'),
Sum({1<Type={'1'}>}Volume),
Count({1<B={'1'}>}ID))

but no luck

can any one let me know any solution for the same

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

If(WildMatch(Only({<Year, MonthName>} MonYY), '*18', 'Jan-19'),
  Sum({<Type = {'1'}, Year, MonthName>} Volume),
  Count({<B = {'1'}, Year, MonthName>}ID)
)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this

If(WildMatch(Only({<Year, MonthName>} MonYY), '*18', 'Jan-19'),
  Sum({<Type = {'1'}, Year, MonthName>} Volume),
  Count({<B = {'1'}, Year, MonthName>}ID)
)
vardhancse
Specialist III
Specialist III
Author

Hi @sunny_talwar ,

Worked perfectly and thank you so much, missed that point of using Only().