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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.