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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.