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

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

Reply
BonusCup
Regular Visitor

Combine and sum rows into one row

Hello,

New to Power BI.  I've tried watching videos and looking on line but can't seem to find a solution for what seems like an easy issue.  I have the current data with just 9 rows and would like to transform it into 4 rows.

Current:

StatusValue
draft

136

0_out_of_2_approvals7
0_out_of_3_approvals0
1_out_of_2_approvals40
1_out_of_3_approvals0
2_out_of_3_approvals0
fully_approved2
sent_for_sign103
fully_executed113

 

Desired:

Status

Value
draft136
prep_and_review49
sent_for_sign103
fully_executed113

 

TIA for any help

1 ACCEPTED SOLUTION
Syk
Super User
Super User

In your Power Query Editor, lets make a new column to get the approvals into a singular status.

Under Add Column > Conditional Column and create some logic like...

Syk_3-1723725701305.png

 

Then you can delete your old status column and your data should look like this

Syk_4-1723725716678.png

 

Go back to the home tab and click Group By (you can also right click the new status column and group by there as well)

Syk_2-1723725610203.png

and voila 

Syk_5-1723725730942.png

 

 



View solution in original post

3 REPLIES 3
DataNinja777
Super User
Super User

Hi @BonusCup ,

You can produce your required output in many different ways using Power BI, and one of them is as follows:

Write a calculated column to identify the rows which contain "approv".

 

 

Status 2 = if(containsstring([Status],"approv")=True,"prep_and_review",'Table'[Status])

 

 

 

Then summarize the table using the dax calculated table function.  

DataNinja777_0-1723725934559.png

I have attached an example pbix file.  

Best regards,

Syk
Super User
Super User

In your Power Query Editor, lets make a new column to get the approvals into a singular status.

Under Add Column > Conditional Column and create some logic like...

Syk_3-1723725701305.png

 

Then you can delete your old status column and your data should look like this

Syk_4-1723725716678.png

 

Go back to the home tab and click Group By (you can also right click the new status column and group by there as well)

Syk_2-1723725610203.png

and voila 

Syk_5-1723725730942.png

 

 



@Syk Thanks so much for the detailed explanation.  I'm very experienced with Alteryx but starting to learn Power BI for reporting.  Excited to go to the Power Platform conference in Sept.  Thanks again!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.