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

Grouped Columns in Bar Chart

Hey everyone.
While working with KPIs in PowerApps, I stumbled upon the need of grouping columns in a regular Bar Chart.

 

Here's a sample of what I've got:

 

 

Month          Percentage 1      Percentage 2

February      12%                    20%
January        10%                    25%

March           6%                      31%

I can plot the values all meld in one chart, with merged columns along the Bar Chart. Unfortunately, however, I can't find a way to group them two by two, and separate them month by month.
The way I see it, I should somehow be able to plot o Chart with two columns per month.

If it helps, I'm leaving here the code that I've been using to create the current chart.

LastN(SortByColumns(ShowColumns(Filter(KPI_Consolidado;KPI_id=Gallery1.Selected.ID);"Material_x0020_de_x0020_Embalage";"Mat_x00e9_ria_x0020_Prima";"ref_month");"ref_month";["Janeiro";"Fevereiro";"Março";"Abril";"Maio";"Junho";"Julho";"Agosto";"Setembro";"Outubro";"Novembro";"Dezembro"]);13)

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Grouped Columns in Bar Chart

There's no property in the bar chart control that can add a spacing between the grouped series - feel free to create a feature request in the PowerApps Ideas board for that.

 

There is, however, a workaround that you can use to add such a spacing. The idea is to have a third series in the chart, but set its color to transparent, so that it is not displayed. The screen capture below shows how this can be done.

 

BarChartColumnGrouping.gif

View solution in original post

1 REPLY 1
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Grouped Columns in Bar Chart

There's no property in the bar chart control that can add a spacing between the grouped series - feel free to create a feature request in the PowerApps Ideas board for that.

 

There is, however, a workaround that you can use to add such a spacing. The idea is to have a third series in the chart, but set its color to transparent, so that it is not displayed. The screen capture below shows how this can be done.

 

BarChartColumnGrouping.gif

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 302 members 6,454 guests
Please welcome our newest community members: