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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.