We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |