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 Apps
Unanswered

Collections

(0) ShareShare
ReportReport
Posted on by 602

Hey guys, can you help me out with this one

 

ClearCollect(collectHoofdprojecten; {Result: "Alle projecten"});;
Collect(collectHoofdprojecten;Distinct('Voorraden Logistiek'; Hoofdproject.Value));;
ClearCollect(collectDatumTelling; {Result: "-"});;
Collect(collectDatumTelling;Distinct('Voorraden Logistiek';('Datumtelling'))

 

Can you tell me why the first Collection works and the second one doesn't ?

 

Im guessing it has something to do with de last part of the formula because I want a collection based on a Date column (='Datumtelling') Basically it goes wrong in the last part from the part that i use Distinct.

 

Ive already tried some variations such as...

 

ClearCollect(collectDatumTelling; {Result: "-"});;
Collect(collectDatumTelling;Distinct('Voorraden Logistiek';(DateValue('Datum telling')))

 

But that doesn't work, can someone help me out here ?

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

    @RvdHeijden You don't need the first ClearCollect. Just do this,

    ClearCollect(collectDatumTelling;Distinct('Voorraden Logistiek';'Datumtelling')

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @RvdHeijden :

    The point is that "-" is a string but Datumtelling is a date column, two different data type that can not be in one  property.

    Please try:

     

    ClearCollect(collectDatumTelling; {Result: "-"});;
    Collect(collectDatumTelling;Distinct('Voorraden Logistiek';Text(('Datumtelling')))

     

    Best Regards,

    Bof

  • RvdHeijden Profile Picture
    602 on at

    The first (red) ClearCollect is to set the dropdown tot a standard value, in this case the "-".

    The first (red) Collect is to set up the collection

     

    The green lines are to set up a different Collection, i saw this formula on YouTube and it works

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @RvdHeijden :

    Have you tested this formula, it should work:

     

    ClearCollect(collectDatumTelling; {Result: "-"});;
    Collect(collectDatumTelling;Distinct('Voorraden Logistiek';Text(('Datumtelling')))

     

    Best Regards,

    Bof

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard