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

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

Reply
fabio_garcia85
Regular Visitor

Summarize after user filter condition

Hi!

 

I have a column for calculating percentage (Amount of errors divided by the amount of requests) per day. This table is one line per day. Image below:

 

1.jpg

When I show this percentage per day, the calculation is ok, however, when I need to summarize this amount per month, PowerBI is making a sum of the day percentages. I wanted it to recalculate the percentage making a sum of the amount of errors in the month and dividing by the amount of requests in the month (value of the columns below), but I'm not able to do this logic. Could you help me please guys?

 

2.jpg

1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

Hi @fabio_garcia85 -

 

Don't calculate the percentage as a column. Change it to a measure and it should give you the right answer at all levels. You can add the measure as a column to a table or matrix visual and if you are showing individual rows it will act exactly like a column.

 

Example:

ErrorPercentage = 
  DIVIDE(SUM(Error), SUM(Total), 0)

 

Hope this helps

David

View solution in original post

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

Hi @fabio_garcia85 -

 

Don't calculate the percentage as a column. Change it to a measure and it should give you the right answer at all levels. You can add the measure as a column to a table or matrix visual and if you are showing individual rows it will act exactly like a column.

 

Example:

ErrorPercentage = 
  DIVIDE(SUM(Error), SUM(Total), 0)

 

Hope this helps

David

Helpful resources

Announcements
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!

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.