Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Grouping rows for a report

Featured Replies

  • Newbies

Newbie here, I'll try and explain my problem best I can. I have a table with my products:

Product

- _kp_product_id

- style

- color

- size

- price

- sale_date

I want to genereate a report that shows sales with a row for each distinct product style, color, and size with a qty rather than having a row for each sale. I have been trying a self-join relationship but am still unable to "group" the rows properly. Is there a way to generate this type of table relationship?

Instead of a self-join, why don't you simply sort the records by product style, color, and size, then show them in a layout with a sub-summary part for each breakfield and no body part? Use a summary field to count the records.

  • 2 weeks later...
  • Author
  • Newbies

I don't believe that will accomplish what I'm after. My records are as follows:


ID Style   Color  Price Size

1  Regular Green  12    Big

2  Regular Green  12    Big

3  Regular Yellow 12    Small

4  Regular Yellow 12    Small

5  Regular Yellow 12    Small

6  Regular Yellow 12    Big

7  Premium Red    14    Big

8  Premium Red    14    Big

9  Premium Yellow 14    Big





I want them to appear in a report (or portal) as:





Style   Color  Price Size  Qty

Regular Green  12    Big   2

Regular Yellow 12    Small 3

Regular Yellow 12    Big   1

Regular Red    14    Big   2

Regular Yellow 14    Big   1

Does that clarify my problem? I was under the impression the best way to achieve this is by a self-joining relationship.

Perhaps you could use your sales records instead of your product list? Sub-Summary layouts sure looks like the way to go to me. They'll give you both the number of items sold and the total dollars.

I agree with the previous posts; base the report on sales table and use a sub-summary report.

You may need a calculated field that concatenates style , color and qty fields so you can sort by and create a sub-summary part for.

I don't believe that will accomplish what I'm after.

It's not a matter of belief:

Report.fp7.zip

I was under the impression the best way to achieve this is by a self-joining relationship.

Summary reports have the advantage of reporting only the found set.

You may need a calculated field that concatenates style , color and qty fields so you can sort by and create a sub-summary part for.

Not really.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.