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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
GBKYE2
Frequent Visitor

Expand table with all categories even if blank

Hi all,

 

Not sure I'm phrasing the question well in the title but here's an example of what I'm trying to do. For eg let's say I have the below table:

SimulationColourCount
1Red1
1Orange2
1Yellow2
1Green3
1Blue2
1Indigo1
1Violet2
2Red3
2Yellow2
2Green3
2Blue2
2Violet4

 

And I also have a key of all available colours:

Colour
Red
Orange
Yellow
Green
Blue
Indigo
Violet

 

I would like to transform the first table to show:

SimulationColourCount
1Red1
1Orange2
1Yellow2
1Green3
1Blue2
1Indigo1
1Violet2
2Red3
2Orange0
2Yellow2
2Green3
2Blue2
2Indigo0
2Violet4

 

I tried merging the tables in a new query but that didn't add in the 0 rows.

 

Many thanks to anyone that can advise.

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@GBKYE2 

you can do this in PQ, pls see the attachment below

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
ryan_mayu
Super User
Super User

@GBKYE2 

you can do this in PQ, pls see the attachment below

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks, I'll give it a try!

tamerj1
Community Champion
Community Champion

Hi @GBKYE2 

Are the two tables linked through the color column? Are you trying to create a calculated table or a table visual?

Hi tamerj1,

 

Yes the data are linked to the colour column. From the sounds of it I'm trying to create a calculated table but I originally thought I would have to do this through the queries.

tamerj1
Community Champion
Community Champion

Hi @GBKYE2 
Please refer to attached file with both solutions

1.png2.png

Thanks, I'll give both a try!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.

Users online (6,433)