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
stribor45
Post Prodigy
Post Prodigy

Summarize Function

Can someone please comment on the SUMMARIZe function? I was under impression that since there are 11 values for manufacturers there should be 11 rows for each colour. I am however sometimes getting 11 and sometimes 10 rows.

 

These are columns and my code

 

stribor45_0-1689379720143.png

 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @stribor45 

SUMMARIZE will return only combinations of the GroupBy columns that exist in the (expanded) table specified in the first argument. SUMMARIZE is effectively grouping the first table argument by the specified GroupBy columns.

 

In this example, only combinations of Brand/Color that exist in 'Product' will appear in the result.

For example, the Color "Transparent" appears only in combination with Brand "Contoso, Ltd".

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
ThxAlot
Super User
Super User

You might want to refer to this in-depth explanation of SUMMARIZE(), and All the secrets of SUMMARIZE - SQLBI



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



OwenAuger
Super User
Super User

Hi @stribor45 

SUMMARIZE will return only combinations of the GroupBy columns that exist in the (expanded) table specified in the first argument. SUMMARIZE is effectively grouping the first table argument by the specified GroupBy columns.

 

In this example, only combinations of Brand/Color that exist in 'Product' will appear in the result.

For example, the Color "Transparent" appears only in combination with Brand "Contoso, Ltd".

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

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.