Forum Discussion
Percentage Value Not Showing Correctly
I have the following table along with the two columns which are used to calculate percentages using the values in this table. For some reason, the percentages are not showing up correctly. Is there add'l formatting I need to do for the two percentage columns?
Table% Completed 60 Days% Complete in 14 Days
Hi Anonymous,
From your posted picture, it seemed that most of your columns are measures and I could not figure your data structure, could you please offer a sample data to have a test if possible?
Regards,
Daniel He
- Anonymous7 years ago
It looks like you created these as new columns, rather than new measures. The percentage needs to be computed on aggregate, not for each row, and then aggregated - that's what's happening now. Try creating a new measure and using this:
Completed in 14 Days % = SUM('Squirrel SQL Export'[TOTAL_COMPLETED]) / SUM('Squirrel SQL Export'[% COMPLETED IN 14 DAYS])Same goes for the other % calc.Ben
4 Replies
- v-danhe-msftMicrosoft Employee
Hi Anonymous,
From your posted picture, it seemed that most of your columns are measures and I could not figure your data structure, could you please offer a sample data to have a test if possible?
Regards,
Daniel He
- AnonymousNot applicable
- AnonymousNot applicable
It looks like you created these as new columns, rather than new measures. The percentage needs to be computed on aggregate, not for each row, and then aggregated - that's what's happening now. Try creating a new measure and using this:
Completed in 14 Days % = SUM('Squirrel SQL Export'[TOTAL_COMPLETED]) / SUM('Squirrel SQL Export'[% COMPLETED IN 14 DAYS])Same goes for the other % calc.Ben- AnonymousNot applicable
That worked! Thanks.