Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I am trying to filter and only sum up values where the Measure>=3. Here is my measure:
Solved! Go to Solution.
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
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
would this work?
SumInOut = SUMX(Filter( NorthtecPunchOrigin, NorthtecPunchOrigin[SumInOut] <=3), [SumInOut])
User | Count |
---|---|
99 | |
86 | |
80 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |