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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JMcAnarney1
Helper I
Helper I

Question for Summing Column based off fields and dividing that into categories based off totals

How can I do following:   I want to sum the following columns to where it will display the same totals based off criteria for each row.  The reason I want to do this is because I want to make a formula to where it will display something like the following:

JMcAnarney1_0-1682697911261.png

 

Issue is now I do a formula but it is summing each line item that makes up the aggregate but does not display the aggregate itself as below with the following formula: 

 

CALCULATE(SUMX(
    KEEPFILTERS(VALUES('Bid Template Data'[Bid Event])),
    CALCULATE(SUM('Bid Template Data'[Total Cost]),'Bid Template Data'[Bidder] = "Engineering Estimate",'Bid Template Data'[Winning Bid] ="No")))
 
How can I write this formula so that it would appear like the following as opposed to just the total cost column shifting over?
JMcAnarney1_1-1682698116223.png

 

I want it like the picture above so i can eventually breakout and have panel to where I can click and it removes everything that is less than x amount,'

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@JMcAnarney1 , based on what I got. one of the two should work

 

= SUMX(
VALUES('Bid Template Data'[Bid Event]),
CALCULATE(SUM('Bid Template Data'[Total Cost]),filter('Bid Template Data', 'Bid Template Data'[Bidder] = "Engineering Estimate",'Bid Template Data'[Winning Bid] ="No")))

= CALCULATE(SUMX(
VALUES('Bid Template Data'[Bid Event]),
CALCULATE(SUM('Bid Template Data'[Total Cost]),filter('Bid Template Data', 'Bid Template Data'[Bidder] = "Engineering Estimate",'Bid Template Data'[Winning Bid] ="No"))), allselected())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.