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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mikeohara
Frequent Visitor

Suming up only visible values from column X grouped by column Y

Hello,

 

I am trying to create calculated column Sale_Sum that will sum up all values from Sale_Amt column grouped by Client_ID.

 

My formula is:

Sale_Sum = SUMX(FILTER(Sales;Sales[Client_ID] = EARLIER(Sales[Client_ID]));Sales[Sale_Amt])

However this sums up all values in dataset, while I want to limit it only to visible rows.

 

This means with filters applied I would like to see Sale_Sum of 100 next to Client_ID = 1.

 

Dataset:

dataset.PNG

 

Dashboard without filters:

no filter.PNG

Dashboard with filters:

filter.PNG

Thanks in advance.

Mike

 

 

1 ACCEPTED SOLUTION

Done, I have used:

 

Sale_Sum_Group_By_Meas = CALCULATE(SUM(Sales[Sale_Amt]);FILTER(ALLSELECTED(Sales);Sales[Client_ID] = MAX(Sales[Client_ID])))

View solution in original post

2 REPLIES 2
mikeohara
Frequent Visitor

bump

Done, I have used:

 

Sale_Sum_Group_By_Meas = CALCULATE(SUM(Sales[Sale_Amt]);FILTER(ALLSELECTED(Sales);Sales[Client_ID] = MAX(Sales[Client_ID])))

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