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
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
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.