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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
kazlik
Helper II
Helper II

Loop through filtered items to qulify a count

I have data similar to the table below and would like to do the following

 

User selects Brand A,B,D from a filter

I want to display the distinct count of ID's per Brand that is qualified based on the following
ID must have a Competitor type of 2 and also a type of 1 that is in the selected Brands and not all for that ID
In this case I should get the following

 

A = 2 (ID 1 and 2)
B = 1 (ID 1)
D = 1 (ID 2)

 

ID 3 would not qualify as brand F is not selected
ID 4 would not quality as brand G is not selected

 

IDBrandCompetitor type
1A2
1B1
1C1
2G1
2D1
2A2
3D1
3B1
3F2
4A2
4G1
5G1
2 REPLIES 2
Anonymous
Not applicable

Hi @kazlik,

 

   can you please post a sample data table. I didn't understand so much the explanation, and starting with a bunch of data it can be much more simple.

 

#I'M Not An Expert#

MattAllington
Community Champion
Community Champion

I would like to help you, but the explanation is really confusing.  Can you have another go at explaining what you need.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

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.