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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
peterhui50
Helper III
Helper III

SUMMARIZECOLUMNS return all columns in Table_1

I have two tables. They are both joined via the column "Store" and it's a 1:Many relationship.

 

1 being Table_1 and many being Table_2

 

Table_1

peterhui50_0-1627675912512.png

 

Table_2

peterhui50_1-1627675946931.png

 

I wrote 

 

 

SUMMARIZECOLUMNS(
    Table_1[Store],
    Table_1[Region],
    Table_2[Sales],
    "Totals",SUM(Table_2[Sales]))

 

 

 

but the result I want is this.

 

peterhui50_2-1627676464773.png

 

 

I have tried using the IGNORE() function but it returns not the correct results.

 

Any help would be appreciated!

 

Peter

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Using the Sales column as a dimension is a bit odd, IMO.

 

I'd suggest this if you want zeros:

SUMMARIZECOLUMNS(
    Table_1[Store],
    Table_1[Region],
    "Totals", SUM(Table_2[Sales]) + 0
)

AlexisOlson_0-1627678137448.png

 

Or this if you want blanks instead of zeros:

Test =
SUMMARIZECOLUMNS (
    Table_1[Store],
    Table_1[Region],
    "Totals", IGNORE ( SUM ( Table_2[Sales] ) )
)

 

View solution in original post

3 REPLIES 3
AlexisOlson
Super User
Super User

Using the Sales column as a dimension is a bit odd, IMO.

 

I'd suggest this if you want zeros:

SUMMARIZECOLUMNS(
    Table_1[Store],
    Table_1[Region],
    "Totals", SUM(Table_2[Sales]) + 0
)

AlexisOlson_0-1627678137448.png

 

Or this if you want blanks instead of zeros:

Test =
SUMMARIZECOLUMNS (
    Table_1[Store],
    Table_1[Region],
    "Totals", IGNORE ( SUM ( Table_2[Sales] ) )
)

 

Thanks Alexis!

 

 

Anonymous
Not applicable

Hi @peterhui50 ,

 

You can write the code like this in order to get Store and Regions with no sales:

 

SUMMARIZECOLUMNS(
            Table_1[Store],
            Table_1[Region],
            "Totals", IF( ISBLANK(SUM(Table_2[Sales])) , 0 , SUM(Table_2[Sales]) )
)

 

 

Jesus.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.