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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Pseifert
Frequent Visitor

Filter results out of a measure

Hello,

 

I am trying to filter and only sum up values where the Measure>=3. Here is my measure: 

SumInOut = SUMX(Values('NorthtecPunchOrigin'[FULLNM]),Calculate(SUM(NorthtecPunchOrigin[INOUT])))
In a single card, this measure results below. My issue is that I can not get this 752 value in a single card because I cant filter out those unique values unless the FULLNM column is introduced.
Capture.PNGCapture2.PNGCapture4.PNG
1 ACCEPTED SOLUTION
helassal
Resolver II
Resolver II

Hi,

 

One way to do it is, to first create a calculated table to hold full names and sum of values, then use "Filter" to filter out summed values => 3 , then sum the values in the filtered table to get the value you need.

 

SumInOut =
VAR AggTable =
    FILTER (
        SUMMARIZE ( 'Table', 'Table'[Names], "SumVal"SUM ( 'Table'[val] ) ),
        [SumVal] >= 3
    )
VAR result =
    CALCULATE ( SUM ( 'Table'[val] )AggTable )
RETURN
    result

Regards,

Haitham

View solution in original post

2 REPLIES 2
helassal
Resolver II
Resolver II

Hi,

 

One way to do it is, to first create a calculated table to hold full names and sum of values, then use "Filter" to filter out summed values => 3 , then sum the values in the filtered table to get the value you need.

 

SumInOut =
VAR AggTable =
    FILTER (
        SUMMARIZE ( 'Table', 'Table'[Names], "SumVal"SUM ( 'Table'[val] ) ),
        [SumVal] >= 3
    )
VAR result =
    CALCULATE ( SUM ( 'Table'[val] )AggTable )
RETURN
    result

Regards,

Haitham

Anonymous
Not applicable

would this work?

 

SumInOut = SUMX(Filter( NorthtecPunchOrigin, NorthtecPunchOrigin[SumInOut] <=3), [SumInOut])

Helpful resources

Announcements
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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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