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 / Clear Collection is Blank
Power Apps
Unanswered

Clear Collection is Blank

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I am trying to create a line graph based on input data defined in Power Apps. I am using the clear collect formula however the clear collect seems to be coming up blank (i.e. it is not recording the data). Would anyone know why this would be the case?

skumar12_0-1626289483943.pngskumar12_1-1626289502552.png

 

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @skumar12 You have the ClearCollect in the OnSelect of the Line Chart. The OnSelect will fire only when the line in the Line Chart is clicked on. In your case there is no line! You will have to put your ClearCollect elsewhere.

     

    In the following example you can see a thin line first and then it turns to a thick line when clicked.

    CNT_0-1626292645168.png

     

    CNT_1-1626292670734.png

     

     

  • skumar12 Profile Picture
    4 on at

    Thank you for your reply! 

     

    But how do I ensure that the line graph is picking up on data defined in the boxes?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @skumar12 

    The easiest way would be to have  a Button that says, "Refresh Graph" and put your clear collect in the OnSelect

     

  • skumar12 Profile Picture
    4 on at

    How would I define my line graph? Would the items line be based on the clearcollect defined from the refresh button?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @skumar12 Well that depends on what you want to show in the graph. you can read about it here in the doc, https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/controls/control-column-line-chart

     

    If you original query has been answered,

    Please remember to give a 👍 and accept the solution as it will help others in the future.

     

    Please post other queries as a separate message as this will help the community! Thanks!

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard