Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 Summed = SUMX(VALUES('Table'[Level1]), CALCULATE([Population (excl. sector)])) is not working. I have included a picture below for reference but any assistance would be greatly appreciated.
Solved! Go to Solution.
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.
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!