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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

create a Measure based on filtering database for each item

Hi community,

 

I have a database with list of project/company and activity and I would like to make a measure that count the qty of projects with the same company and activity as below table .

 

would have any idea how to do this with powerBI ?

 

thank you for your support 

projectcompany activitymeasure
project1company1activity12
project2company1activity21
project3company2activity13
project4company2activity13
project5company1activity12
project6company2activity13
4 REPLIES 4
m3tr01d
Continued Contributor
Continued Contributor

hello @Anonymous,
what about 

CALCULATE(
   COUNTROWS( 'Table' ),
   ALLEXCEPT( 'Table', 'Table'[Activity], 'Table'[Company] )
)



Anonymous
Not applicable

table in different format 

 

pierreyves_0-1626945786603.png

 

Anonymous
Not applicable

Hi Community 

 

I m just following up on this request

 

anyone have any idea on how to adress this issue

 

thank you for your support

Anonymous
Not applicable

to clarify the result of the table:

line 1: qty of projects with company1 and activity1=2

line 2: qty of projects with company1 and activity2=1

line 3: qty of projects with company2 and activity1=3

 

...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.