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
Anonymous
Not applicable

Calculate the Ratio

Hello,

I have a problem and wanted to ask if one of you could possibly help me. So I'm trying to calculate a percentage value. The problem is that the values must be filtered by year and must also be summed. If you look at the picture you see the column "Sum", this should be summed up but the year should be considered in the column "Year". In this way, the sum of the rows that contain the same year and are in the column "True to date" should be divided by the total per year.

 

 

Steallight_0-1691408253466.png

 

 

With kind regards
Steallight

 

1 ACCEPTED SOLUTION
eliasayyy
Memorable Member
Memorable Member

annonymous1999_0-1691408796117.png

 

 

Total Sum by year = CALCULATE(SUMX('Table','Table'[Summe]),ALLEXCEPT('Table','Table'[Jahr]))


OR

Total Sum by year = SUMX(CALCULATETABLE('Table',ALLEXCEPT('Table','Table'[Jahr])),'Table'[Summe])

 

 

 

Percentage = DIVIDE('Table'[Summe],'Table'[Total Sum by year])

 

 

View solution in original post

2 REPLIES 2
eliasayyy
Memorable Member
Memorable Member

annonymous1999_0-1691408796117.png

 

 

Total Sum by year = CALCULATE(SUMX('Table','Table'[Summe]),ALLEXCEPT('Table','Table'[Jahr]))


OR

Total Sum by year = SUMX(CALCULATETABLE('Table',ALLEXCEPT('Table','Table'[Jahr])),'Table'[Summe])

 

 

 

Percentage = DIVIDE('Table'[Summe],'Table'[Total Sum by year])

 

 

Anonymous
Not applicable

is it even possible with Power BI?

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.