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
akemr
Helper II
Helper II

Need to filter a list of contracts by their status and show only ones with a specific status

Hi all,

 

I have a dataset that consists of a list of contracts, each of which has one of the following statuses: Active, Inactive, Inactive (Stalled), Inactive (Expired), Inactive (Pursuit).

 

In PBI Desktop, I've created a matrix visual and picked the relevant fields from the dataset. I have a total of 67 contracts and all of them are appearing with the appropriate information. However, I wish to show only the contracts that have either Active or Inactive status.

 

I have a measure to calculate these contracts which number to 59. So i wish to show only these 59 contracts in the matrix visual. Any ideas on how to do this?

 

I'm fairly new to PBI so any help is appreciated, thanks 🙂

 

 

Annotation.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@akemr , if you have only that measure if will filter .

measure = calculate(count(contracts[ID]), filter(contracts, contracts[Status] in {"Active","Inactive"}))

 

But other measures without those filters can show more data. So you can use a slicer to filter data or visual level filter to filter status = active and inactive

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@akemr , if you have only that measure if will filter .

measure = calculate(count(contracts[ID]), filter(contracts, contracts[Status] in {"Active","Inactive"}))

 

But other measures without those filters can show more data. So you can use a slicer to filter data or visual level filter to filter status = active and inactive

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak , I used a slicer visual to filter them and then hid the slicer visual as this is a permanent change. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors