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
Akers
New Member

Merge Multiple Rows Into One

Hi,
We are trying to put together a report in Power BI Desktop using data from SQL Server, we are having issues with duplicate values.

 

bi-example

The above screenshot shows the problem, we have a job with the same order number where multiple tasks have been completed but one overall price. what we need to achieve is something like the below.

 

excel-example

Essentially, we need to see the cost only once for each job number.

Any help on how we could achieve this would be appreciated.

2 ACCEPTED SOLUTIONS
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Akers ,

For your scenario, you may could try to create a calculated table with SUMMARIZE to achieve that. Please refer to the formula below.

table= summarize('table name',"order numer","jobDate",...)

If you still need help, please share some data sample with table format and your desired output so that people could make a copy and have test.

Best Regards,

Cherry

 

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jdbuchanan71
Super User
Super User

Give this a try

Descriptions = IF ( ISINSCOPE ( Ordernumber ), CONCATENATEX ( Table, Table[Job Description],", ")

You will need to replace the "Table" with whatever your table name is.  The ISINSCOPE keeps the string from building on total rows.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Akers ,

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please share your data sample with table format and your desired output so that we could copy and test on it.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jdbuchanan71
Super User
Super User

Give this a try

Descriptions = IF ( ISINSCOPE ( Ordernumber ), CONCATENATEX ( Table, Table[Job Description],", ")

You will need to replace the "Table" with whatever your table name is.  The ISINSCOPE keeps the string from building on total rows.

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Akers ,

For your scenario, you may could try to create a calculated table with SUMMARIZE to achieve that. Please refer to the formula below.

table= summarize('table name',"order numer","jobDate",...)

If you still need help, please share some data sample with table format and your desired output so that people could make a copy and have test.

Best Regards,

Cherry

 

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

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.