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
AKR719
New Member

Need help with filters

Hi,

 

I have a 'property' table and a 'contract' table, which are having a 1:n relation. My report is showing the property table. There are some slicers on the property table which are working fine (e.g. filtering on the country, type or status of property). I've figured out that a measure

 

count_of_selected_contracts = Count(contracts)

 

returs the number of the selected property items. But how to count the number of the selected property items while applying an extra condition, which is not set via slicer? I need something like

 

count_of_selected_active, contracts = Count(contracts, 'contracts'[Status]="active")

 

But the above doesn't work. I need something that gives the number of active contracts which are related to the selected property items. Could someone please help me out? Thanks!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @AKR719 

you can try

count_of_selected_active, contracts =

COUNTROWS (

FILTER ( contracts, contracts[Status] = "active" )

)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @AKR719 

you can try

count_of_selected_active, contracts =

COUNTROWS (

FILTER ( contracts, contracts[Status] = "active" )

)

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.