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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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?

 

TableTable% Completed 60 Days% Completed 60 Days% Complete in 14 Days% Complete in 14 Days

2 ACCEPTED SOLUTIONS
v-danhe-msft
Employee
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

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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

View solution in original post

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

That worked!   Thanks.

v-danhe-msft
Employee
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

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I created a sample table with the same issue; here are the files:

 

Work Order XLS

Work Order PBIX

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.