Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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:
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?
Solved! Go to Solution.
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
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
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |