Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join this live chat April 6, 10AM EST - QlikView to Qlik Sense REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
masch112
Creator
Creator

Counting rows in a straight table

Dear community,

I would like to count the data entries in straight tables that are generated by various expressions.

I am currently using two dimensions in the straight tables, company and account name.

Capture.JPG

Just counting the companies that show up in the table (9 in this case) would be enough, if I can count every single row (18) that's fine as well.

Thank you in advance!

I will attach the sample.

Best regards,

Mats

1 Solution

Accepted Solutions
sunny_talwar

May be this

Count(DISTINCT Aggr(IF([FS Item] >= 100000 and [FS Item]<= 2000000 and Sum([Period Value GC]) < 0, [Company Name]), [Company Name], [Name Financial Statement Item]))

or this

Count(DISTINCT Aggr(IF([FS Item] >= 100000 and [FS Item]<= 2000000 and Sum([Period Value GC]) < 0, [Name Financial Statement Item]&[Company Name]), [Company Name], [Name Financial Statement Item]))

View solution in original post

6 Replies
Anil_Babu_Samineni

Can you try this, May be?

Count(Aggr(IF([FS Item] >= 100000 and [FS Item]<= 2000000 and Sum([Period Value GC]) <= 0, Sum ([Period Value GC])) ,[Name Financial Statement Item]))

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
vinieme12
Champion II
Champion II

For Total Rows

=sum(AGGR(if(sum({<[FS Item]={">=100000<=2000000"} >} [Period Value GC])<0,1),[Company Name],[Name Financial Statement Item]))

For Distinct count of Companies

=count(distinct AGGR(if(sum({<[FS Item]={">=100000<=2000000"} >} [Period Value GC])<0,[Company Name]),[Company Name],[Name Financial Statement Item]))

Check the attached

sunny_talwar

May be this

Count(DISTINCT Aggr(IF([FS Item] >= 100000 and [FS Item]<= 2000000 and Sum([Period Value GC]) < 0, [Company Name]), [Company Name], [Name Financial Statement Item]))

or this

Count(DISTINCT Aggr(IF([FS Item] >= 100000 and [FS Item]<= 2000000 and Sum([Period Value GC]) < 0, [Name Financial Statement Item]&[Company Name]), [Company Name], [Name Financial Statement Item]))

View solution in original post

masch112
Creator
Creator
Author

Works as well! Thanks.

masch112
Creator
Creator
Author

Works like a charm, thanks!

masch112
Creator
Creator
Author

works, thank you