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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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