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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.