Jump to content
We've recently updated our Privacy Statement, available here ×

Problem with random separated Groups in Top10-List


NiOs

Recommended Posts

I´ve a problem with Groups which are seperating randomly, so that i have for one Group Expression more then one printed Group.

My Data is from a ranked Top10_per_Group-SQL Query.
The SQL-Query is Group(ed) By "Shops" and "ItemCategory" and has SUM(ed) "Sales" like:

ShopsItemCategorySalesRank
Shop_AItemCat_XYZ12341
Shop_AItemCat_WST11232
............
Shop_AItemCat_KML65210
Shop_BItemCat_RST512341
............
Shop_BItemCat_NMK25310
Shop_CItemCat_WDT851
............

 

In JasperDesigner I created a Group with GroupExpression = "Shops" and the output in a Report is i.e. for Shop_A printed like:


Shop_A


ItemCat_XYZ12341
ItemCat_WST11232

Shop_A


ItemCat_DFG10043
ItemCat_RDT9034
ItemCat_WSF8525

 Shop_A


ItemCat_DFG8516

Shop_A


ItemCat_TZU7997
ItemCat_RDT7828
ItemCat_PLM6899
ItemCat_UHN65210

But the result i want is that all Top10-Items of Shop_A are placed in the Group of Shop_A and all Items of Shop_B are placed in the Group of Shop_B and so on.

The Shops-Field is placed in GroupHeader, the Items-Fields in the Detail1-Band.
When I place all the Fields in the Details-Band, i get the same result like in MSSQL-Server.

I tryed it with several Evaluation Times, but the only result is, that the Group is seperated in another way or with all items.

I hope you understand my problem and are able to solve it.

Please help.

Best regards,
Nils

Link to comment
Share on other sites

  • 6 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...