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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pran_jal_g
Regular Visitor

How to create custom groups ?

Hi, I am completely new in Power BI, I have a requirement which required grouping of data.I have data for customers under 10 hierarchies (let's say, H1, H2, H3,....H10) drilling down from H1 to H2 to H3 ....till H10. According to the requirement, I need to group the few customers whose Hierarchy and name of customer will be given to us and combine those customers into one single group. The customers need not be in the same hierarchy. The different customer from H2, H4, H8 may be combined to form one group. Any suggestions or help is welcome.

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

Hi@ pran_jal_g 

You can try to add the few customers information into a new table and then use  LOOKUPVALUE function and ISBLANK function to add a column like below:

H11 = IF(ISBLANK(LOOKUPVALUE(Table1[ID],Table2[ID],Table1[ID],Table2[H1],Table1[H1],Table2[H4],Table1[H4]))=FALSE(),"new group")

Result:

the few customers information

5.png6.png

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

If the grouping is based on just the titles then in might be easier to group by the ' create a new group' option.

 

Link to video here - https://www.youtube.com/watch?v=6kpKQxjo7uI

 

If it's not as simple as that then you might need to implement some DAX

 

Let me know if that helps

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.