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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Rodelaar
Regular Visitor

Exclude value from measure

Hi, 

I'm quite new in the Power BI world and I'm struggling with a measure, which I can't get right. 

 

This is a very small part of the data set: 

 

GL Value
4000 1500
4090 2000
4100 4220
4500 8000
4501 2300
4590 50
7001 1000
7002 250
7003 200
7006 710
8001 29000
8002 3000


I want a measure with the values from all of the GL accounts, except from the values from account 4500, 4501 and 7006. I've tried some things, but didn't get the right result. 

 

Can you guys help me out a bit? 

 

Many thanks!

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Rodelaar 
Give this a try.

Some GLs = 
CALCULATE ( 
    SUM ( YourTable[Value] ),
    KEEPFILTERS ( NOT YourTable[GL] IN {"4500","4501","7006"} )
)

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Rodelaar 
Give this a try.

Some GLs = 
CALCULATE ( 
    SUM ( YourTable[Value] ),
    KEEPFILTERS ( NOT YourTable[GL] IN {"4500","4501","7006"} )
)

Thanks @jdbuchanan71, I've learned something today!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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