cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Windchill report "Group by" rows function

Dobi
16-Pearl

Windchill report "Group by" rows function

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

6 REPLIES 6
Marco_Tosin
21-Topaz I
(To:Dobi)

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
17-Peridot
(To:Dobi)

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.

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
(To:Dobi)

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

I think that's the part I was missing - adding a new table in that sub-select. So step 1 done and now working... but failing in terms of result provided. Looks like that's on me (Work Item or Wf Assigned Activity is a unique ID each row so perhaps stepping up to the ECN level will give me what I want). 

 

 

Marco_Tosin
21-Topaz I
(To:Dobi)

Announcements


Top Tags