Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
| Producer | region | run | material | cost | total | total group |
| abc | mars | fast | a | 5 | 5 | 15 |
| abc | mars | fast | b | 10 | 10 | 15 |
| abc | mars | slow | c | 15 | 15 | 35 |
| abc | mars | slow | d | 20 | 20 | 35 |
| xyz | neptune | fast | e | 5 | 5 | 30 |
| xyz | neptune | fast | f | 10 | 10 | 30 |
| xyz | neptune | fast | g | 15 | 15 | 30 |
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.
Solved! Go to Solution.
Hi @Anonymous ,
Column = CALCULATE(SUM('Table'[total]),ALLEXCEPT('Table','Table'[Producer],'Table'[region],'Table'[run]))
Best Regards,
Jay
Hi @Anonymous ,
Column = CALCULATE(SUM('Table'[total]),ALLEXCEPT('Table','Table'[Producer],'Table'[region],'Table'[run]))
Best Regards,
Jay
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]
It will be numeric and not concatenate.
I am looking for DAX as the group by in power query is taking lot of time to process.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 32 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 82 | |
| 68 | |
| 43 | |
| 26 | |
| 25 |