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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.