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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JNelson
Helper II
Helper II

Measure to exclude certain rows

Hello!

I have an direct query file I'm working with which is very security restricted (eg. I cannot create new tables/columns etc). 

 

I've created a matrix that pulls through a grand total of all accounts by financial year and have then used the filters pane to exclude a few accounts. I want to turn this into a measure so I can use it in a line graph to compare against the grand total. I thought this would be simple, however I am stumped. 

 

The tables used in the matrix are:

Columns: Financial Year (belongs to 'Date - Report' table)

Values: Actual Amount (belongs to 'Transaction Measures' table)

Filter: Code (belongs to 'Account' table) is not 84900, 84901, 84905

 

I'd be so grateful if someone could suggest a measure that would retrieve the same outcome! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JNelson , a measure like

calculate([Actual Amount], filter(Account, not Account[ID] in { 84900, 84901, 84905}))

 

Fy to filter and added additional

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

@JNelson , a measure like

calculate([Actual Amount], filter(Account, not Account[ID] in { 84900, 84901, 84905}))

 

Fy to filter and added additional

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

Ah!! Thank you so much! Worked like a charm. 🙂

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.