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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Summarize function error: the expression refers to multiple columns

Hi experts,

When using the expression below I am getting the error: 

Summarize function error: the expression refers to multiple columns

Any idea what I am missing?

 

MyMeasure:=SUMMARIZE( Range,Range[Date], "Total Value", sum( Range[Sales]))

 

DateCustomerCityCountrySales
20/01/2025ASydneyAustralia15
27/01/2025ANew YorkUS20
3/02/2025AMelbourneAustralia10
10/02/2025ASao PauloBrazil16
17/02/2025ALondonUK13
24/02/2025ARomeItaly13
3/03/2025AParisFrance11
20/01/2025BSydneyAustralia17
27/01/2025BNew YorkUS14
3/02/2025BMelbourneAustralia15
10/02/2025BSao PauloBrazil20
17/02/2025BLondonUK11
24/02/2025BRomeItaly15
3/03/2025BParisFrance15
20/01/2025CSydneyAustralia12
27/01/2025CNew YorkUS15
3/02/2025CMelbourneAustralia17
10/02/2025CSao PauloBrazil10
17/02/2025CLondonUK12
24/02/2025CRomeItaly19
3/03/2025CParisFrance17
20/01/2025DSydneyAustralia13
27/01/2025DNew YorkUS11
3/02/2025DMelbourneAustralia12
10/02/2025DSao PauloBrazil14
17/02/2025DLondonUK15
24/02/2025DRomeItaly14
3/03/2025DParisFrance16

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Irwan has explained very clearly why this error is reported and given a solution. If you want to get the summarized values group by the data, you can also create a table visual in Power BI directly with below setttings to get it:

vyiruanmsft_1-1737440237899.png

Hi @Canguru ,

You can refer the following link to insert a pivot table to get it just as shown in below screenshot:

Power Pivot Principles: Introducing the SUMMARIZE Function

vyiruanmsft_0-1737438513258.png

Best Regards

View solution in original post

4 REPLIES 4
Irwan
Super User
Super User

hello @Anonymous 

 

your DAX works perfectly if your expected result is a table.

Irwan_0-1737412954362.png

 

however, looks like you put the DAX into measure which has scalar return value (not a column) the you got this error.

Irwan_1-1737413040772.png

here is return value of SUMMARIZE() based on SUMMARIZE function (DAX) - DAX | Microsoft Learn

Irwan_2-1737413106150.png

 

you can use SUMMARIZE() in measure, but i believe you need to do SUMMARIZE() in virtual table then take the value from virtual table as your measure result.

 

Hope this will help.

Thank you.

Thanks @Irwan ,

How did you return a virtual table using the summarize expression? I have created the measure using PowerPivot. How can I create the virtual table in PowerPivot?

Anonymous
Not applicable

Hi @Anonymous ,

Irwan has explained very clearly why this error is reported and given a solution. If you want to get the summarized values group by the data, you can also create a table visual in Power BI directly with below setttings to get it:

vyiruanmsft_1-1737440237899.png

Hi @Canguru ,

You can refer the following link to insert a pivot table to get it just as shown in below screenshot:

Power Pivot Principles: Introducing the SUMMARIZE Function

vyiruanmsft_0-1737438513258.png

Best Regards

hello @Canguru 

 

i would do something like this.

Irwan_0-1737438350003.png

MyMeasure = 
var _Sum =
SUMMARIZE(
    'Range',
    'Range'[Date],
    'Range'[Sales]
)
Return
SUMX(
    _Sum,
    'Range'[Sales]
)
Virtual table stored as variable then calculate any value from that variable.
 
Hope this will help.
Thank you.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.