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
AmiraBedh
Super User
Super User

SUM by group and display the result for each row

I have the following table :

CommissionDate Mois Annee Commission

03/03/2022         03     2022    5000

04/03/2022         03     2022    4900

05/03/2022         03     2022    1900

01/04/2022         04     2022    25000

02/04/2022         04     2022    5600

03/04/2022         04     2022    900

 

I want to calculate the SUM of the commission for each month and display it for each row like below :

CommissionDate Mois Annee Commission TotalCommissionByMonth

03/03/2022         03     2022    5000             11600

04/03/2022         03     2022    4900             11600

05/03/2022         03     2022    1900             11600

01/04/2022         04     2022    25000           31500

02/04/2022         04     2022    5600             31500

03/04/2022         04     2022    900               31500


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

@AmiraBedh 

 

Please use this calculation 

Note my sheet name is SUM 🙂

Com per Month = CALCULATE(SUM('SUM'[Commission]),FILTER(all('SUM'),'SUM'[Month]=MAX('SUM'[Month])))
ribisht17_0-1651662970145.png

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

View solution in original post

1 REPLY 1
ribisht17
Super User
Super User

@AmiraBedh 

 

Please use this calculation 

Note my sheet name is SUM 🙂

Com per Month = CALCULATE(SUM('SUM'[Commission]),FILTER(all('SUM'),'SUM'[Month]=MAX('SUM'[Month])))
ribisht17_0-1651662970145.png

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

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