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 / line chart and column ...
Power Apps
Answered

line chart and column chart in power app

(0) ShareShare
ReportReport
Posted on by 25

table info:

emp_name ,  Progress   , InterviewDate

ankit    ,    Not select,   22-01-2000

aman,  selected,   23-01-2000

sahil,  canceled,   28-01-2000

atul,   removed,   09-02-2000

sandeep  , selected,   12-02-2000

raman,   notselect,   15-02-2000

avi,     selected,   28-02-2000

etc...

 

i want to make line chart which will tell the  no. of interview happened on week basis.
and one colums chart which will tell the the selected and not selected count.

 

someone please tell how to write the function to get the required line and colum chart.


please help.

Images are attached.

thnaks

line&piechart.png
Categories:
  • Verified answer
    Sunil-Narnaware Profile Picture
    681 on at

    @aadi_0453 : This is how your table shaping function would look like.. Replace colInterviewStatus with your interview details data source table and rename with appropriate column.. 

     

    ClearCollect(
     colNewInterviewStatus,
     AddColumns(
     GroupBy(
     SortByColumns(
     AddColumns(
     colInterviewStatus,
     "Week #",
     WeekNum(ThisRecord.InterviewDate)
     ),
     "Week #",
     Ascending
     ),
     "Week #",
     "NewGroup"
     ),
     "No. of Interviews",
     CountRows(NewGroup),
     "No. of Selected",
     CountRows(
     Filter(
     NewGroup,
     Progress = "Selected"
     )
     ),
     "No. of Not Selected",
     CountRows(
     Filter(
     NewGroup,
     Progress = "Not Selected"
     )
     )
     )
    );
    
    

     You can write the above code on 'OnVisible' Property of your Screen.. Make sure to set the Charts' Items property to colNewInterviewStatus the collection where the result of table shaping is stored..

     Here is the end result I got at my end..

     

    SunilNarnaware_1-1656614737243.png


    =================================
    If this solves your problem, 'Accept is as Solution' so others can also benefit from it. If you like, hit 👍.

     

  • aadi_0453 Profile Picture
    25 on at

    Hi @Sunil-Narnaware ,thanks it worked.

  • Kumar_PA Profile Picture
    70 on at

    @aadi_0453 , you can also create a beautiful power BI report with many visualizations and then use that power bi dashboard/ report with power app fully intuitive .

  • aadi_0453 Profile Picture
    25 on at

    hi @Kumar_PA, thanks i will try it.

  • Sunil-Narnaware Profile Picture
    681 on at

    @aadi_0453 but do remember you have to consider delegation when working with large amount of Data.. https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/delegation-overview

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard