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
Krahnin
New Member

How to Display Percentages (i.e. 0.98) as 98 on a Y-axis 0-100?

I have a stacked column chart visualizing data from a Google Sheet. Within this sheet, there are monthly numbers per representative within my department, which are then averaged together to produce a percentage ranging from 0-100%. My column visualization is fairly simple. On the X-axis are the names of each person in the department. On the Y-axis is a range from 0-100. The data being plotted are the calculated averages for each (0-100%).

 

Until recently, this displayed without issue. 98% would display as 98 on the 0-100 scale and so forth. Now, all percentages are displaying as decimals (i.e. 0.98 on the 0-100 scale). Essentially everything is displaying below 1 on the scale. Nothing within the source sheet has changed, nor have I modified any settings within Power BI for that particular visualization. Additionally, I cannot seem to get things back to how they were short of changing the range of the Y-Axis to be 0-1. When I edit the query and look at the format for the data within that column, it is currently formatted as 1.2 Decimal Number and the numbers within the query display correctly.

 

Recap:

X-axis: Names

Y-axis: 0-100

Data plotted: averages from 0-100% formatted as '1.2 Decimal Numbers'.

Behavior Example: Query data shows 98. Data plots as 0.98 (below 1) on graph.

2 ACCEPTED SOLUTIONS

Apologies about the delay in getting back to the community, I was traveling for business. I ended up resolving the issue by clearing and reapplying my transformation steps. I still am not sure what happened to break them as neither the query had been edited nor the source spreadsheet had any formatting performed on it.

 

If it helps anyone else, my transformation steps (skipping everything prior) were as follows:

  • Changed type to 1.2 Fixed Decimal (imported from Google Sheets as Text).
  • Multiplied Column by 100 to move the decimal two places to the right (i.e. 0.984 becomes 98.4).

View solution in original post

For future reference, instead of multiplying by 100, you could go to the model view, then in the Modeling tab, select the % icon in the Formatting area.  You could also specify the # of decimals as well

View solution in original post

4 REPLIES 4
GilbertQ
Super User
Super User

Hi there

 

Could it possibly be that you changed the Format from "Percentage" to "Decimal"?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Apologies about the delay in getting back to the community, I was traveling for business. I ended up resolving the issue by clearing and reapplying my transformation steps. I still am not sure what happened to break them as neither the query had been edited nor the source spreadsheet had any formatting performed on it.

 

If it helps anyone else, my transformation steps (skipping everything prior) were as follows:

  • Changed type to 1.2 Fixed Decimal (imported from Google Sheets as Text).
  • Multiplied Column by 100 to move the decimal two places to the right (i.e. 0.984 becomes 98.4).

For future reference, instead of multiplying by 100, you could go to the model view, then in the Modeling tab, select the % icon in the Formatting area.  You could also specify the # of decimals as well

v-yuezhe-msft
Employee
Employee

Hi @Krahnin,

I am not able to reproduce your issue using my sample data.
1.PNG

Could you please post sample data of your scenario and post screenshots about how you format the percentage column as '1.2 Decimal Numbers'? Also please view the APPLIED STEPS windows in Query Editor to check if you make alterations for the percentage column.
2.PNG

Thanks,
Lydia Zhang

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

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.