Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all
I need to group by the different values of each different column.
Basically go from this:
To this:
As seen in image above you have grouped by the values of type, country, sub region, ingredients supplier, ingredients, etc.
Is it possible to group by each individual column with its values?
Here is the pbix attached, the tab contains both the original table and desired result.
Thanks!
Solved! Go to Solution.
Hi @o59393 ,
According to your description, you can use the CONCATENATEX function to create multiple column formulas similar to the following, then create a virtual table, add the created column to it, and get the following result:
Col_Tpye = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Type] ), 'Table'[Type], "," ),ALL('Table')
)
Col_region = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Region]), 'Table'[Region], "," ),ALL('Table')
)
Col_Ingredienssulier = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Ingredientssupplier] ), 'Table'[Ingredientssupplier], "," ),ALL('Table')
)Table_New = SUMMARIZE('Table',[Col_Tpye],[Col_region],[Col_Ingredienssulier])
related document link:
CONCATENATEX DAX function, Power BI String function - Power BI Docs
Hope to help you solve the problem.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @o59393 ,
According to your description, you can use the CONCATENATEX function to create multiple column formulas similar to the following, then create a virtual table, add the created column to it, and get the following result:
Col_Tpye = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Type] ), 'Table'[Type], "," ),ALL('Table')
)
Col_region = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Region]), 'Table'[Region], "," ),ALL('Table')
)
Col_Ingredienssulier = 
CALCULATE (
    CONCATENATEX ( VALUES ( 'Table'[Ingredientssupplier] ), 'Table'[Ingredientssupplier], "," ),ALL('Table')
)Table_New = SUMMARIZE('Table',[Col_Tpye],[Col_region],[Col_Ingredienssulier])
related document link:
CONCATENATEX DAX function, Power BI String function - Power BI Docs
Hope to help you solve the problem.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @amitchandak
I used
How can I have it work in the table too?
Thanks.
Hi @amitchandak
Thanks for the help. I tried the measure and look what happens:
How can I remove the duplicates?
Also want to know if this measure will group by each individual id or all the id's combined?
For example, ID 116 has Argentina, Brazil and Chile.
And let's say ID 117 has Ecuador and Colombia.
Will it do Argentina, Brazil, Chile, Ecuador and Colombia in one?
I would like to have it grouped by each id. Not by all combined, in this case Argentina, Brazil and Chile in one row and in another one Ecuador and Colombia. Is that possible?
Thanks!!!
@o59393 , You have create meausres using
Country measure = concatenatex(Table, [country], ",")
Country measure = concatenatex(Table, [sub region], ",")
same for others ans use then in visual
refer
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |