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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.