Forum Discussion
Anonymous
4 years agoNot applicable
Conditional SUMX formula
Hello, I am trying to create a SUMX function that will sum my rows by Category (Level 1 column) but only include rows in which a sector average is included. Currently my formula of Population Sum...
- 4 years ago
Hi Anonymous ,
According to your description, try the following formula:
Result = IF ( 'Table'[Sector Average] <> BLANK (), SUMX ( FILTER ( 'Table', 'Table'[Level 1] = EARLIER ( 'Table'[Level 1] ) && 'Table'[Sector Average] <> BLANK () ), [Population] ), BLANK () )
If the problem is still not resolved, please point it out and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-henryk-mstf
4 years agoCommunity Support
Hi Anonymous ,
According to your description, try the following formula:
Result =
IF (
'Table'[Sector Average] <> BLANK (),
SUMX (
FILTER (
'Table',
'Table'[Level 1] = EARLIER ( 'Table'[Level 1] )
&& 'Table'[Sector Average] <> BLANK ()
),
[Population]
),
BLANK ()
)
If the problem is still not resolved, please point it out and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.