Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9005695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:12:47+00:00 2026-06-16T01:12:47+00:00

I have a CSV datasource something like this: User,Site,Requests user01,www.facebook.com,54220 user01,plusone.google.com,2015 user01,www.twitter.com,33564 user01,www.linkedin.com,54220 user01,weibo.com,2015

  • 0

I have a CSV datasource something like this:

User,Site,Requests
user01,www.facebook.com,54220
user01,plusone.google.com,2015
user01,www.twitter.com,33564
user01,www.linkedin.com,54220
user01,weibo.com,2015
user02,www.twitter.com,33564
user03,www.facebook.com,54220
user03,plusone.google.com,2015
user03,www.twitter.com,33564

In the report I want to display the first 3 rows (max) for each user, while the other rows will only contribute to the group total. How do I limit the report to only print 3 rows per group?

e.g

User     Site                Requests
user01 | www.facebook.com    |  54220
         plusone.google.com  |   2015
         www.twitter.com     |  33564
                             | 146034
user02 | www.twitter.com     |  33564
                             |  33564
user03 | www.facebook.com    |  54220
user03 | plusone.google.com  |   2015
user03 | www.twitter.com     |  33564
                             |  89799

It is really just the line limiting I am struggling with, the rest is working just fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:12:48+00:00Added an answer on June 16, 2026 at 1:12 am

    I found a way to do it, if anyone can come up with a more elegant answer I would be happy to see it, as this feels a bit hacky!

    for each item in detail band:

    <reportElement...  isRemoveLineWhenBlank="true">
         <printWhenExpression><![CDATA[$V{userGroup_COUNT} < 4]]></printWhenExpression>
    </reportElement>
    

    where userGroup is the field I am grouping by. I only seemed to need the isRemoveLineWhenBlank attribute for the first element.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CSV file that goes something like this: ['Name1', '', '', '',
Right now, if you have a test that looks like this: [TestMethod] [DeploymentItem(DataSource.csv)] [DataSource(
I have csv values like this: $csv_data = test,this,thing hi,there,this is,cool,dude have,fun; I want
I have a CSV file that looks like this, where time is a UNIX
I have a csv file that looks like this: Please note, there are no
I have CSV data like this: Number;Version 1;AA.1 1;A01.1 1;A01.2 1;Z.7 Here, I need
I have csv file that looks like this: artist,year,id,video_name,new_video_id,file_root_name,video_type ,,,,,, Clay Aiken,1,clay_aiken,Sorry Seems To
I have this codes to allow users to upload csv files and the contents
I have CSV data loaded into a multidimensional array. In this way each row
I have csv file like a, b, c, d 1, 2, 3, 4 5,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.