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

Grouping overlapping

Hello

 

I have the data:

 Attribute1Attribute2Attribute3
Product1123
Product2234
Product3345
Product4456

 

I want to group it with custom criteria i.e.:

Group1 = Attribute1>2 and Attribute2>2

Group2 = Attribute1>1 and Attribute3>3

 

You will notice that e.g. Product3 belongs to both Group1 and Group2

 

I then want to count each Group members regardless if they belong to more than one groups.

 

What would be the ideal data structure to do that?

 

I was thinking a Column that will calculate the Group1, Group2 values for each Product but it will need to be concatenated and it will not be easy to pivot it.

 

Any ideas?

 

Thanks!

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Anonymous 

 

You can add two calculated colum with the following codes to the table:

Group1 = 
IF('Table (2)'[Attribute1]>2&&'Table (2)'[Attribute2]>2,1,0)
Group2 = 
IF.EAGER('Table (2)'[Attribute1]>1&&'Table (2)'[Attribute3]>3,1,0)

 

Output will be like this:

VahidDM_0-1649205117388.png

 

 

 

then you can use these columns to find the count of group 1 and 2 (just sum the value in those columns)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @Anonymous 

 

You can add two calculated colum with the following codes to the table:

Group1 = 
IF('Table (2)'[Attribute1]>2&&'Table (2)'[Attribute2]>2,1,0)
Group2 = 
IF.EAGER('Table (2)'[Attribute1]>1&&'Table (2)'[Attribute3]>3,1,0)

 

Output will be like this:

VahidDM_0-1649205117388.png

 

 

 

then you can use these columns to find the count of group 1 and 2 (just sum the value in those columns)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Ashish_Mathur
Super User
Super User

Hi,

Please show the end result that you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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