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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors