Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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]))

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

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 III
Champion III

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

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
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]))

Anonymous
Not applicable
Author

Works as well! Thanks.

Anonymous
Not applicable
Author

Works like a charm, thanks!

Anonymous
Not applicable
Author

works, thank you