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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
divsforeal
Frequent Visitor

Sum of column (Score) by ID (dealing with blank values)

I have a complex situation. Im trying to calculate sum of Pillar Score by Unique ID (Screenshot below). I want DAX to calculate only the sum of 2 values and display on all rows. (Screenshot below)

 

Required Output:

divsforeal_1-1701983953770.png

Current Output:

divsforeal_2-1701984036038.png

DAX Expressions:

Pillar Score:

CALCULATE(AVERAGE('Table'[CC_Pillar_Score]), ALLEXCEPT('Table', 'Table'[Unique ID], 'Table'[Pillar]))
Sum of Pillar Score: (Current Output) 
CALCULATE(SUM('Table'[Pillar Score]), FILTER(ALL('Table'), 'Table'[Unique ID] = EARLIER('Table'[Unique ID])))
 
Looking for some help to get the required output. Thanks in advance.
1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@divsforeal 

pls try this

Measure = sumx(FILTER(all('Table'),'Table'[Unique ID]=max('Table'[Unique ID])),[pillar score2])

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Try this calculated column formula

=CALCULATE(SUM('Table'[Pillar Score]), FILTER('Table', 'Table'[Unique ID] = EARLIER('Table'[Unique ID])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

@divsforeal 

pls try this

Measure = sumx(FILTER(all('Table'),'Table'[Unique ID]=max('Table'[Unique ID])),[pillar score2])

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors