Skip to main content
17-Peridot
October 30, 2024
Solved

Windchill report "Group by" rows function

  • October 30, 2024
  • 2 replies
  • 1709 views

Version: Windchill 12.0

 

Use Case: I have a report that lists out a number of ECNs and how many reworks (trip count) per ECN there were. The table view of the report shows a new row for each incrementing trip count value. "Group by" doesn't seem to do the grouping by rows to consolidate the results.


Description:

The report template lists out the ECN number for a time range with it's trip count (number of reworks). The table itself has a row for each incremental value of the trip count. 

 

Something like this:

ECN NumberDateTrip count
ECN-123451/2/231
ECN-123451/3/232
ECN-123451/5/243

 

Is there a way in the report template to group the rows by the ECN number so that for the example above I just get a single row like this:

ECN NumberDateTrip count
ECN-123451/5/233

 

Ideally I'm looking for a way of doing this without exporting out the table and then doing this in PowerBI (which works just fine). 

Best answer by joe_morton

Try removing the Role from the "Select or Constrain"

2 replies

Marco Tosin
21-Topaz I
21-Topaz I
October 30, 2024

I have a report that counts the number of Windchill accesses of various users in real time.

 

The report uses the database COUNT function.

Obviously the count is impacted by the range used as the time period

 

Below are some examples of existing reports that use the COUNT function

 

How to Generate a report to get a count of users exist

 

How to create a report that counts WTParts in a specific context

 

Report listing all content counts by data format

 

Report for counting the Affected Objects in a Problem Report

 

Report to count the number of documents by different document types

 

 

Marco
joe_morton
18-Opal
18-Opal
October 30, 2024

Looks like you just want the maximum trip count? Try using the database function maximum. You'll need to define that in a sub-select if you go that route.

Dobi17-PeridotAuthor
17-Peridot
October 30, 2024

That's what I'd like. When I create the criteria, though, I get a "this table cannot be modified from a sub-select" for all of the tables". 

 

Dobi_0-1730303974428.png

 

Marco Tosin
21-Topaz I
21-Topaz I
October 30, 2024

In the sub-select you have to add the table from which you want to extract the criteria one more time.

 

That table will be colored white and not blue like the ones in the image you attached

 

Marco