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
gssarathkumar
Helper I
Helper I

Combine Rows and show in a Table

Hi,

I have the below two tables in my source.

 

Table1:

 

EngagementSLA & Obligation RAGSLA & Obligation RemarksStability & Availability RAGStability & Availability RemarksSecurity & Vulnerability RAGSecurity & Vulnerability RemarksCustomer Sentiment
TAAround 5 SLA failedGAround 5 Major issue reportedA N
DGAround 5 SLA failedRNo Major incdient reportedGVulnerability Remediation plan In placeH
LRAround 5 SLA failedANo Major incdient reportedRVulnerability Remediation plan In placeU

 

Table2:

 

EngagementMS / PSRAGTopicOwnerImplicationsAction RequiredTimingSequenceDashboard Visibility
TMSATopic1Around 5 SLA failedGAround 5 Major issue reportedA1Y
DMSGTopic3Around 5 SLA failedGNo Major incdient reportedG2Y
TMSATopic2Around 10 SLA failedRAround 50 Major issue reportedR1Y

 

I made a connection between the tables based on Engagement column.

 

I would like to create a table visual with these columns.

 

My current output:

gssarathkumar_0-1726470496218.png


My Expected Output:

 

I would like to combine the rows based on Engagement, which is possible on Matrix view but I need to apply RAG coloring as per my current output.

 

gssarathkumar_1-1726470564338.png

 

Is there any ways to combine the rows (not all rows) of Table 2 based on the Engagement column so that I can use them.

 

 

Kindly help me to get the same.

 

@amitchandak @Greg_Deckler @lbendlin @DesktopOwl @Goodlytics4U @HelpMe @Ahmedx @v-huijie-msft 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from amitchandak , please allow me to provide another insight:

Hi, @gssarathkumar 

We currently have two solutions, each with its own drawbacks. You can choose based on your needs:

 

1.Firstly, you can merge the two tables and create an index, keeping only the first one:

 

First, create an index column in Power Query:

let
    Source = Table.NestedJoin(Table, {"Engagement"}, #"Table (2)", {"Engagement"}, "Table (2)", JoinKind.RightOuter),
    #"Expanded Table (2)" = Table.ExpandTableColumn(Source, "Table (2)", {"Topic", "Owner", "Implications", "Action Required", "Timing"}, {"Table (2).Topic", "Table (2).Owner", "Table (2).Implications", "Table (2).Action Required", "Table (2).Timing"}),
    #"Grouped Rows" = Table.Group(#"Expanded Table (2)", {"Engagement"}, {{"Count", each Table.AddIndexColumn(_, "Index", 1, 1, Int64.Type)}}),
    #"Expanded Count" = Table.ExpandTableColumn(#"Grouped Rows", "Count", {"SLA & Obligation Remarks", "Stability & Availability Remarks", "Security & Vulnerability Remarks", "Customer Sentiment", "Table (2).Topic", "Table (2).Owner", "Table (2).Implications", "Table (2).Action Required", "Table (2).Timing", "Index"}, {"Count.SLA & Obligation Remarks", "Count.Stability & Availability Remarks", "Count.Security & Vulnerability Remarks", "Count.Customer Sentiment", "Count.Table (2).Topic", "Count.Table (2).Owner", "Count.Table (2).Implications", "Count.Table (2).Action Required", "Count.Table (2).Timing", "Count.Index"})
in
    #"Expanded Count"

Next, use the following calculated column:

engagement1 = 
VAR FIRST=CALCULATE(MIN('Merge1'[Count.Index]),ALLEXCEPT('Merge1','Merge1'[Engagement]))
RETURN IF('Merge1'[Count.Index]=FIRST,'Merge1'[Engagement],BLANK())

There is a link to a similar issue:

https://community.fabric.microsoft.com/t5/Desktop/Group-by-ID-Skip-Aggregation/td-p/3976285

Here's my final result, which I hope meets your requirements.

vlinyulumsft_0-1726734967362.png

2.Secondly, you mentioned using the matrix view:

 

You only need to modify the matrix settings as shown in the image below:

vlinyulumsft_1-1726734967363.png

ere's my final result, which I hope meets your requirements.

vlinyulumsft_2-1726734976961.png

 

Please find the attached pbix relevant to the case.

 
Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

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

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply from amitchandak , please allow me to provide another insight:

Hi, @gssarathkumar 

We currently have two solutions, each with its own drawbacks. You can choose based on your needs:

 

1.Firstly, you can merge the two tables and create an index, keeping only the first one:

 

First, create an index column in Power Query:

let
    Source = Table.NestedJoin(Table, {"Engagement"}, #"Table (2)", {"Engagement"}, "Table (2)", JoinKind.RightOuter),
    #"Expanded Table (2)" = Table.ExpandTableColumn(Source, "Table (2)", {"Topic", "Owner", "Implications", "Action Required", "Timing"}, {"Table (2).Topic", "Table (2).Owner", "Table (2).Implications", "Table (2).Action Required", "Table (2).Timing"}),
    #"Grouped Rows" = Table.Group(#"Expanded Table (2)", {"Engagement"}, {{"Count", each Table.AddIndexColumn(_, "Index", 1, 1, Int64.Type)}}),
    #"Expanded Count" = Table.ExpandTableColumn(#"Grouped Rows", "Count", {"SLA & Obligation Remarks", "Stability & Availability Remarks", "Security & Vulnerability Remarks", "Customer Sentiment", "Table (2).Topic", "Table (2).Owner", "Table (2).Implications", "Table (2).Action Required", "Table (2).Timing", "Index"}, {"Count.SLA & Obligation Remarks", "Count.Stability & Availability Remarks", "Count.Security & Vulnerability Remarks", "Count.Customer Sentiment", "Count.Table (2).Topic", "Count.Table (2).Owner", "Count.Table (2).Implications", "Count.Table (2).Action Required", "Count.Table (2).Timing", "Count.Index"})
in
    #"Expanded Count"

Next, use the following calculated column:

engagement1 = 
VAR FIRST=CALCULATE(MIN('Merge1'[Count.Index]),ALLEXCEPT('Merge1','Merge1'[Engagement]))
RETURN IF('Merge1'[Count.Index]=FIRST,'Merge1'[Engagement],BLANK())

There is a link to a similar issue:

https://community.fabric.microsoft.com/t5/Desktop/Group-by-ID-Skip-Aggregation/td-p/3976285

Here's my final result, which I hope meets your requirements.

vlinyulumsft_0-1726734967362.png

2.Secondly, you mentioned using the matrix view:

 

You only need to modify the matrix settings as shown in the image below:

vlinyulumsft_1-1726734967363.png

ere's my final result, which I hope meets your requirements.

vlinyulumsft_2-1726734976961.png

 

Please find the attached pbix relevant to the case.

 
Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@gssarathkumar , On Matrix visual as of Now conditional formatting is not supported on Row/Column Fields. And Combining of rows is only available with Row fields

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.