Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Rodney
Contributor III
Contributor III

Filtering not working

Help please! 

As per the first image, we have a simple grid with 477 records. We have a formula which looks at the date and time and depending on that combination, marks it as either a D or an E. Filter1.PNG

 

If we want to filter by D or E it will work for E, and give us the 29 records: Filter2.PNG

 but not when we select D (you can see it still selects all 477 records): Filter3.PNG

 Why not? 

1 Solution

Accepted Solutions
Rodney
Contributor III
Contributor III
Author

Thanks for trying. I've given up too, but found a work-a-around ... 

I am putting the function that looks at the data and returns D/E in the SQL View, and returning this as an extra column. Then I add this field to the report and it filters fine. 

 

View solution in original post

12 Replies
tresesco
MVP
MVP

Could you post the expression you used to mark them D or E? Sample qvf would be even better, if you could share.
uroboros
Creator
Creator

Do you have a distinct counting?

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

 

Can you attach qvf? This will help resolve the issue as the problem is in the data model

Rodney
Contributor III
Contributor III
Author

here's the expression. 

It's a QlikSense application and the company is pretty sensitive to their data, so I don't think i can post any of the source files I'm afraid. 

Rodney
Contributor III
Contributor III
Author

"Do you have a distinct counting?"

No, I don't think so. I've now attached the expression. 
Thanks.

Rodney
Contributor III
Contributor III
Author

I've now simplified the expression so that there are only two values (not 3 as in the original). 

But still have the same issue. 

477 Showing in Total. 29 when I select E, but 477 showing when I select D. 

= if ( Match ( weekday( [Date] , 6)  , 'Thu.' , 'Sat.' , 'Sun.')

		OR ([Start Time] < '17:00')

	, 'D'
    
    , 'E' )
Øystein_Kolsrud
Employee
Employee

If I'm not mistaken, I think there have been some changes in this domain in later releases of Qlik Sense. What version are you using?
Rodney
Contributor III
Contributor III
Author

Good question. When I go to the Site License Page in the QMC, I see this: 

PRODUCTLEVEL;50;;2019-03-31

Is this the version? 

Øystein_Kolsrud
Employee
Employee

No, that's information related to your license I think. You should find the version information down in the bottom right corner of the start page of the QMC. In the Hub, you can get the information from the "About" section accessible from the menu in the top right corner.