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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
pierre-yves
Advocate I
Advocate I

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 @pierre-yves,
what about 

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



pierre-yves
Advocate I
Advocate I

table in different format 

 

pierreyves_0-1626945786603.png

 

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

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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