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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

How to ignore selection on a text object scripting?

Hi guys,

I have a line of codes. I need to add this into a text object to display the total records. Problem is when i selected any of the filters, it changed.

what else to change in this code so that wont be affected by filters. ?

=(count({$<number = {'$(=max(number))'}, year = {'$(=max(year))'},likelihood_name={LOW},impact_name={LOW},status={DELETED}>} number) )

+

(Count(DISTINCT {<record_id = e({<record_id = {"=Count({<year = {'<$(=Max(year))'}>} record_id ) > 0"}>}), likelihood_name = {'LOW'},impact_name = {'LOW'}>} record_id ))




rgds

Jim

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

May be this:

=(Count({1<number = {'$(=Max({1}number))'}, year = {'$(=Max({1}year))'},likelihood_name={LOW},impact_name={LOW},status={DELETED}>} number) )

+

(Count(DISTINCT {1<record_id = e({1<record_id = {"=Count({1<year = {'<$(=Max({1}year))'}>} record_id ) > 0"}>}), likelihood_name = {'LOW'}, impact_name = {'LOW'}>} record_id))

jim_chan
Specialist
Specialist
Author

Bro,

The figure goes wrong when added 1.

(Count(DISTINCT {1<record_id = e({1<record_id = {"=Count({1<year = {'<$(=Max({1}year))'}>} record_id ) > 0"}>}), likelihood_name = {'LOW'}, impact_name = {'LOW'}>} record_id))


Rgds,

Jim

sunny_talwar
MVP
MVP

‌Really? I would have not expected that. Can you provide a sample of screenshots of what you are seeing?

Best,

Sunny