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

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard