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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.