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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Add Group By Column

Producerregionrunmaterialcosttotaltotal group
abcmarsfasta5515
abcmarsfastb101015
abcmarsslowc151535
abcmarsslowd202035
xyzneptunefaste5530
xyzneptunefastf101030
xyzneptunefastg151530

Hi guys I looking for DAX that will add a new column "total group" to table as shown above. the last column

The column should group the values by producer, region and run and it should NOT groupby the material column.


 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Column = CALCULATE(SUM('Table'[total]),ALLEXCEPT('Table','Table'[Producer],'Table'[region],'Table'[run]))

vjaywmsft_0-1662602018529.png

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

Column = CALCULATE(SUM('Table'[total]),ALLEXCEPT('Table','Table'[Producer],'Table'[region],'Table'[run]))

vjaywmsft_0-1662602018529.png

 

Best Regards,

Jay

Anonymous
Not applicable

Hi,

Please refer to this documentation and see if it solves your issue. 
In regards to creating the additional column, do you want to concatenate the values or have a numeric column?
Concatenate: Column D = [Producer]  & [region]  & [run]


Anonymous
Not applicable

It will be numeric and not concatenate.

Anonymous
Not applicable
Anonymous
Not applicable

I am looking for DAX as the group by in power query is taking lot of time to process.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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