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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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