web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Chart from a gallery o...
Power Apps
Answered

Chart from a gallery or collection from two data sources

(0) ShareShare
ReportReport
Posted on by 248

Hi all,

 

I want show a Chart that is using diferent sources but all data are together in a Collection.

 

The chart must to show:

 

Categorie (grouped and sorted by it)

MaxHours

MissingHours

 

The problem is that MaxHours is from a plant table and MissingHours is from breakdowns table, but both have the Categorie field.

 

As I said, I have a gallery and collection because I use it to show a report in HTML (this works perfect), but I can't use it to show the Chart:

 

Screenshot_1.pngScreenshot_5.pngScreenshot_4.png

 

any idea?

 

Thanks.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Manarjomar Profile Picture
    248 on at

    I did it!!

     

    Screenshot_6.png

     

    Well, finally I did it using two steps:

     

    My original collection is "Equipos" (with all nested records). Know that I have a button to create a new collection "Grafico" using "Equipos":

     

    Clear(Grafico);;
    ForAll(
     Equipos;
     Collect(
     Grafico;
     {Categoria: Categoria.Text;
     HorasMáximas: HorasMaximas.Text;
     HorasPerdidas: HorasPerdidas.Text 
     }
     )
    )

     

    Later, the item propetie on the chart is:

     

    AddColumns(
     GroupBy(
     Grafico;
     "Categoria"; 		
     "Grupo"			
     );
     "QHM";		
     Sum(
     Grupo;			
     HorasMáximas);				
     "QHP";			
     Sum(
     Grupo;			
     HorasPerdidas)	
     )

     

    Maybe is possible do it easier but I don't know... hehehehe.

     

    Any way, is here to help.

     

    Now I have a new task to do it with the chart. But I will open a new topic.

     

    Thank you to read.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard