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

Trying to understand Expression (in SUMMARIZE & MINX/MAXX)

I am trying to analyze this DAX code (indicated on the bottom link)

https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434

 

JustinDoh1_1-1658017038798.png

I am just not getting what "_Value" is all about.

According to the definition of Summarize, it "creates a summary of the input table grouped by the specified columns."

 

This is definition by Microsoft site:

SUMMARIZE (<table>, <groupBy_columnName>[, <groupBy_columnName>]…[, <name>, <expression>]…)

 

So, I am guessing SUM('Table'[Value]) is a <groupBy_columnName>, and then what does "_Value" do?

 

How do we express Ex1 and Ex2 in SQL?

 

Thanks.

 

1 ACCEPTED SOLUTION
technolog
Super User
Super User

Hi! 

In Ex1 it's the name of created column. In this column calculate SUM( Table[Value] )

In Ex2 it's the same.

[___Value] it's just a created column name.

 

View solution in original post

7 REPLIES 7
JustinDoh1
Post Prodigy
Post Prodigy

@Anonymous 

I am trying to follow up on my previous question.

Thanks.

daXtreme
Solution Sage
Solution Sage

@JustinDoh1 

 

By the way, SUMMARIZE should never be used the way it is in your code in measures. There is a famous article by Marco Ruso and Alberto Ferrari on www.sqlbi.com that explains why and what to replace it with.

technolog
Super User
Super User

Hi! 

In Ex1 it's the name of created column. In this column calculate SUM( Table[Value] )

In Ex2 it's the same.

[___Value] it's just a created column name.

 

@technolog 

Thank you for your help.

Just for reference:

Objective of Summarzie: returns summary table for the requested totals over a set of groups.

So, how do we interpret the bottom DAX in English or SQL?

SUMMARIZE(
            'Table',
            [Item],
            "__Value",SUM('Table'[Value])
        )

 It returns [Item] from 'Table' for sum of value?

Anonymous
Not applicable

HI @JustinDoh1,

This formula mean get the Item field and summary values from your table based on the Item group.

Regards,

Xiaoxin Sheng

@Anonymous Thank you for your reply.

I am not quite understood.

"get the Item field and summary values from your table based on the Item group"

JustinDoh1_0-1658874142536.png

How do we convert this into SQL?

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.