Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ConnieMaldonado
Responsive Resident
Responsive Resident

Create a table from existing table with count of items

Hello - I have a table with Work Order IDs and Items for each work order.  I need to create a new table that summarizes the count of items by work order ID.

 

OriginalTable:

ConnieMaldonado_4-1659121841342.png

 

I need a table with the following:

 

ConnieMaldonado_7-1659122044800.png

 

I used the following to create the table, but I'm not sure how to indicate that the 2nd column should be a count of items for each WorkOrderID:

 

New Table =
SUMMARIZE(OriginalTable,OriginalTable[Work_Order_Id])
 
 

Any help would be appreciated!  Thanks.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @ConnieMaldonado 
Please try

New Table =
SUMMARIZE (
    OriginalTable,
    OriginalTable[Work_Order_Id],
    "ItemCount", COUNTA ( OriginalTable[Item] )
)

View solution in original post

2 REPLIES 2
ConnieMaldonado
Responsive Resident
Responsive Resident

Thanks so much for this!  It worked perfectly.

tamerj1
Super User
Super User

Hi @ConnieMaldonado 
Please try

New Table =
SUMMARIZE (
    OriginalTable,
    OriginalTable[Work_Order_Id],
    "ItemCount", COUNTA ( OriginalTable[Item] )
)

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.