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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

gckcmc
Resolver I
Resolver I

would this work?

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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