Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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]))
| Date | Customer | City | Country | Sales |
| 20/01/2025 | A | Sydney | Australia | 15 |
| 27/01/2025 | A | New York | US | 20 |
| 3/02/2025 | A | Melbourne | Australia | 10 |
| 10/02/2025 | A | Sao Paulo | Brazil | 16 |
| 17/02/2025 | A | London | UK | 13 |
| 24/02/2025 | A | Rome | Italy | 13 |
| 3/03/2025 | A | Paris | France | 11 |
| 20/01/2025 | B | Sydney | Australia | 17 |
| 27/01/2025 | B | New York | US | 14 |
| 3/02/2025 | B | Melbourne | Australia | 15 |
| 10/02/2025 | B | Sao Paulo | Brazil | 20 |
| 17/02/2025 | B | London | UK | 11 |
| 24/02/2025 | B | Rome | Italy | 15 |
| 3/03/2025 | B | Paris | France | 15 |
| 20/01/2025 | C | Sydney | Australia | 12 |
| 27/01/2025 | C | New York | US | 15 |
| 3/02/2025 | C | Melbourne | Australia | 17 |
| 10/02/2025 | C | Sao Paulo | Brazil | 10 |
| 17/02/2025 | C | London | UK | 12 |
| 24/02/2025 | C | Rome | Italy | 19 |
| 3/03/2025 | C | Paris | France | 17 |
| 20/01/2025 | D | Sydney | Australia | 13 |
| 27/01/2025 | D | New York | US | 11 |
| 3/02/2025 | D | Melbourne | Australia | 12 |
| 10/02/2025 | D | Sao Paulo | Brazil | 14 |
| 17/02/2025 | D | London | UK | 15 |
| 24/02/2025 | D | Rome | Italy | 14 |
| 3/03/2025 | D | Paris | France | 16 |
Solved! Go to Solution.
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:
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
Best Regards
hello @Anonymous
your DAX works perfectly if your expected result is a table.
however, looks like you put the DAX into measure which has scalar return value (not a column) the you got this error.
here is return value of SUMMARIZE() based on SUMMARIZE function (DAX) - DAX | Microsoft Learn
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?
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:
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
Best Regards
hello @Canguru
i would do something like this.
MyMeasure =
var _Sum =
SUMMARIZE(
'Range',
'Range'[Date],
'Range'[Sales]
)
Return
SUMX(
_Sum,
'Range'[Sales]
)
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |