cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
albertov
Level: Powered On

Show labels in bar chart as percentages

As this post shows, it is possible to show labels in a pie chart as percentages.

However, I have a bar chart, and I would like to show makers as percentages, instead of decimals between 0 to 1.

I have gone through the advanced settings, and it seems that the only place where I can influence this is under the field "Markers", which is currently set to "true". 

 

How can I view the markers in this bar chart as percentages?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Show labels in bar chart as percentages

Hi @albertov

Could you please share a bit more about the Markers property within the Pie Chart on your side?

I could not find the Markers property within the Pie Chart control. I only find the Markers property within the Column Chart control and the Line Chart column. Do you mean that you want to view the markers in the Column Chart control as percentage?

If you want to view the markers in the Column Chart control as percentages, based on the thread that you provided, I have made a test on my side, I think the Text function may not achieve your needs.

As an alternative solution, I think Text function toggle with the MakerSuffix property of the Column Chart could achieve your needs. I have made a test on my side, please take a try with the following workaround:3.JPG

 

4.JPG

Set the Items property of the Column Chart control to following:

AddColumns(
ColumnChartSample,
"Percentage",
Text(Area/Sum(ColumnChartSample,Area)*100,"[$-en-US]#.00")
)

Set the MarkerSuffix property of the Column Chart control to following:

"%"

Set the Series1 property to of the Column Chart control to Percentage column.

In addition, if you want to view the markers in the Line Chart control as percentages, I have made a test, I afraid that there is no way to achieve your needs in PowerApps currently.

 

Best regards,

Kris

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

Re: Show labels in bar chart as percentages

Hi @albertov

Could you please share a bit more about the Markers property within the Pie Chart on your side?

I could not find the Markers property within the Pie Chart control. I only find the Markers property within the Column Chart control and the Line Chart column. Do you mean that you want to view the markers in the Column Chart control as percentage?

If you want to view the markers in the Column Chart control as percentages, based on the thread that you provided, I have made a test on my side, I think the Text function may not achieve your needs.

As an alternative solution, I think Text function toggle with the MakerSuffix property of the Column Chart could achieve your needs. I have made a test on my side, please take a try with the following workaround:3.JPG

 

4.JPG

Set the Items property of the Column Chart control to following:

AddColumns(
ColumnChartSample,
"Percentage",
Text(Area/Sum(ColumnChartSample,Area)*100,"[$-en-US]#.00")
)

Set the MarkerSuffix property of the Column Chart control to following:

"%"

Set the Series1 property to of the Column Chart control to Percentage column.

In addition, if you want to view the markers in the Line Chart control as percentages, I have made a test, I afraid that there is no way to achieve your needs in PowerApps currently.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
albertov
Level: Powered On

Re: Show labels in bar chart as percentages

Thanks for your reply and suggested solution!

 

I didn't realize that this is what the MarkerSuffix  does.

 

I haven't really tried to do this with a pie chart, because what I have is a bar chart. I just registered that someone presented a similar question for a pie chart earlier, and I wanted to specify that my question is different.

 

How do I use your workaround in the Items property, when my diagram results from a filter?

 

The Items property in my ColumnChart1 is already something like

 

Filter(Data Source,User().FullName=User)

The reason for this, is that I am presenting a diagram from a larger Sharepoint list, with information on all users. I want each user to be able to see only their own information. This works well, but I don't know how to combine it with the AddColumns solution that you suggested.

 

I also tried changing the format of the data in the data source (a Share Point list), by multiplying the data by 100, before publishing. This way, I can use the suffix, without any other changes to the Items property in the canvas app. However, the ColumnChart1  stopped being visible when I did this, probably because the scale became too large ? I tried adjusting Series axis min and Series axis max, but it didn't help.

 

Thanks again

Alberto

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 38 members 4,042 guests
Please welcome our newest community members: