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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Lumegu
Frequent Visitor

Combining information without getting duplicate rows

Dear community,

 

I have a question and was wondering if this is even possible. I would like to combine the data from two queries (items_table and information_table) into one visual (desired output). If I create a simple normal table (and relating both queries) I end up with duplicate descriptions if an item has multiple pieces of information. 

 

I would like the desired output to only show the item once and depending on the amount of related information lines, one or more lines showing related information for this item. 

 

I now visualize in a table, but perhaps you have better suggestions how to display this best!

 

items_table:

ItemDescription
1Book
2House
3Door
4Window

 

information_table

Information numberRelated ItemInformation
111Blue
121New
132For sale
142Large
153Brown

 

Desired output: (e.g. in below example in the first 2 rows all information should be merged (no empty cells) and  item 1 should display 2 related pieces of information in separate cells)

 

ItemDescriptionAmount of related informationRelated information
1Book211. Blue
   12. New
2House213. For sale
   14. Large
3Door115. Brown
4Window0 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Lumegu ,

 

Try to build your matrix by measure and transform it in Format. 

I build a sample by your data. I turn off Stepped layout/ Word wrap function in Format and then reduce the width of columns which I don't need to 0.

Then create measures as below.

Amount of related information = 
IF(ISINSCOPE(information_table[Information number]),BLANK(),COUNT(information_table[Information])+0)
Related information = 
IF(ISINSCOPE(information_table[Information number]), MAX(information_table[Information]),BLANK())
Related Information Number = IF(ISINSCOPE(information_table[Information number]), SUM(information_table[Information number]),BLANK())

Result is as below.

1.png

Best Regards,
Rico Zhou

 

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

Hi @Lumegu ,

 

Try to build your matrix by measure and transform it in Format. 

I build a sample by your data. I turn off Stepped layout/ Word wrap function in Format and then reduce the width of columns which I don't need to 0.

Then create measures as below.

Amount of related information = 
IF(ISINSCOPE(information_table[Information number]),BLANK(),COUNT(information_table[Information])+0)
Related information = 
IF(ISINSCOPE(information_table[Information number]), MAX(information_table[Information]),BLANK())
Related Information Number = IF(ISINSCOPE(information_table[Information number]), SUM(information_table[Information number]),BLANK())

Result is as below.

1.png

Best Regards,
Rico Zhou

 

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

@Lumegu , Matrix is nearest. But will not display as is what you want.

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

You can check for custom visual

https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

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.