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
Guinaba
New Member

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 @Guinaba ,

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 @Guinaba 

 

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 @Guinaba ,

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
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.