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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ukantkumar
Helper I
Helper I

Count By Group

kalesh 3.pngkalesh 4.png

Using Upper data I want a lower table in power query

I mean I need, Project id, Count of the total, count of completed and tag as separate Column

pls help me 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
3 REPLIES 3
Anonymous
Not applicable

let
    Source = Table1,
    #"Grouped Rows" = Table.Group(Source, {"projectID", "tags"}, {{"Total Count", each Table.RowCount(_), type number}, {"Data", each _, type table}}),
    
    #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Completed Count", 
        each List.Count( 
             List.FindText( [Data][status],"Completed")       
            
            ), Int64.Type
        ),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Data"})
    
in
    #"Removed Columns"

PQ Group and Count List.png

can I have a snapshot of power query step? or PBIX FILE, please 

Anonymous
Not applicable

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.