Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to restrict top 10 fields data in straight table ?

Hi all,

I have a straight table I need to get top 10 TGB Data's values  based on Expression result

Screenshot_6.png

ThExpression used is:

=if(num(If(Rolling_7_days.AMPMTemp='AM',

  Only({<Rolling_7_days.AMPMTemp = {PM}>} TOTAL<[Rolling_7_days.TGB Name], [Rolling_7_days.File Date]> Rolling_7_days.Counts) /

  Only({<Rolling_7_days.AMPMTemp = {AM}>} TOTAL<  [Rolling_7_days.AMI TGB ID]> Rolling_7_days.Counts)-1,

  Only({<Rolling_7_days.AMPMTemp = {AM}>} TOTAL<[Rolling_7_days.TGB Name],[Rolling_7_days.File Date1]> Rolling_7_days.Counts)/

  Only({<Rolling_7_days.AMPMTemp = {PM}>} TOTAL< [Rolling_7_days.AMI TGB ID]> Rolling_7_days.Counts) -1))>0,

 

   num(If(Rolling_7_days.AMPMTemp='AM',

  Only({<Rolling_7_days.AMPMTemp = {PM}>} TOTAL<[Rolling_7_days.TGB Name], [Rolling_7_days.File Date]> Rolling_7_days.Counts) /

  Only({<Rolling_7_days.AMPMTemp = {AM}>} TOTAL<  [Rolling_7_days.AMI TGB ID]> Rolling_7_days.Counts)-1,

  Only({<Rolling_7_days.AMPMTemp = {AM}>} TOTAL<[Rolling_7_days.TGB Name],[Rolling_7_days.File Date1]> Rolling_7_days.Counts)/

  Only({<Rolling_7_days.AMPMTemp = {PM}>} TOTAL< [Rolling_7_days.AMI TGB ID]> Rolling_7_days.Counts) -1)))

a dimension used is:

Screenshot_9.png

Thanks,

Muthu

8 Replies
sunny_talwar

May be using Dimension's limit tab to limit top 10 values?

QlikView 11 Dimension Limit Functionality

shiveshsingh
Master
Master

You can go to Chart properties, then click on Dimension Limits,

From there you can restrict the values to be displayed.

Capture.JPG

Not applicable
Author

Thanks for your update stalwar1‌ and  SHIVESH

But It's not working. I think it's because of my expression

can you give me a suitable Expression for it

Thanks,

Muthu

Siva_Sankar
Master II
Master II

Hi Muthu kumar,

What is the expression doing? ?You could handle complex expression in script side if possible?

Can you share sample data?

Siva

Anil_Babu_Samineni

If possible, please share sample

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

thanks for your response @Anil Babu Samineni and shankarece

Please find the sample data and sample Code for your reference.

kindly suggest me the expression so that it will be help full for me

Set Analysis Expression If possible

Thanks,

Muthu

Not applicable
Author

I have attached the sample data for only one Day. but  in Actual  The sample Data has been Placed Based on AM and PM on a daily basis From that they are fetching the Data

Not applicable
Author

Anyone Please reply and give me a solution

.can we able to add any calculated dimension to restrict top 10