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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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