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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
userxxxxxx
Contributor II
Contributor II

Help with table

Hello, I'd been working with Qlik Sense for a few weeks now,  currently I have the following data:

userxxxxxx_0-1647966200004.png

I successfully built a table in that only shows the areas having people_whs_gt10 > 0, using this function in the dimension named area:

=IF(worked_hours_gt10>0, area)

Then I added a Date Picker Control, which allows me to select date ranges, I need to only show the people_whs_gt10 > 0 and the date should be the max value from the picker, I tried the following with no luck:

=IF(worked_hours_gt10>0 AND date=MAX(date), area)   : Shows no error in the editor, but in the designer.

 

 

 

Labels (2)
1 Solution

Accepted Solutions
Digvijay_Singh

May be something like this in the attached app, the rightmost table has the expression

MaxString({<people_whs_gt10={">0"},date={'$(=date(Max(date),'YYYY-MM-DD'))'}>}area)

 

View solution in original post

7 Replies
userxxxxxx
Contributor II
Contributor II
Author

The next thing I tried for the dimension is:

IF(worked_hours_gt10>0 and Aggr(MAX({$}date), area)=date, area)

No luck yet.

userxxxxxx
Contributor II
Contributor II
Author

The following actually works:

IF(worked_hours_gt10>0 and date='2021-01-12', area)

But that's not the solution I'm looking for.

Digvijay_Singh

May be something like this in the attached app, the rightmost table has the expression

MaxString({<people_whs_gt10={">0"},date={'$(=date(Max(date),'YYYY-MM-DD'))'}>}area)

 

userxxxxxx
Contributor II
Contributor II
Author

Hello @Digvijay_Singh , the table I'm referring to is the Chart Object:

 

userxxxxxx_0-1647986682888.png

 

The formula for the first column (area dimension), is this one:

=IF(worked_hours_gt10>0, area)

This formula along with "Include null values" unchecked, succeed  hiding unwanted rows.

 

The problem is, I want to use this control:

userxxxxxx_1-1647987351761.png

From the selected range, I want to use the MAX(date), so I modify the formula to something like this:

IF(worked_hours_gt10>0 and Aggr(MAX({$}date), area)=date, area), but this formula is not correct.

 

BTW: You may ask, Why is he using a range? Well, I use that range to create a bar chart and works just fine.

 

Digvijay_Singh

Could you get chance to explore the app I shared?

userxxxxxx
Contributor II
Contributor II
Author

Let me ask the admin for authorization to upload this app.

userxxxxxx
Contributor II
Contributor II
Author

Awesome, thanks for the help.