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 / remove with many datas...
Power Apps
Answered

remove with many datasource

(0) ShareShare
ReportReport
Posted on by 125

i need help please

 

I have a gallery connected to various data sources using an "if" formula, and I want to delete it when selecting an icon in the gallery, I have tried with the "remove" formula and as a data source I put the "if" formula and it gives me a error, tells me that this formula is not valid for that formula, Any solution?

 

Error =” the specified data source can not be used with this function”12.png

any ideas??

thanks

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

    Not know any language other than English but hey worth a go..

     

    RemoveIf(Datasource,ID=ThisItem.ID)

     

    get rid of the If functions and just do:

     

    RemoveIf(Datasource,ID=ThisItem.ID);RemoveIf(Datasource,ID=ThisItem.ID);RemoveIf(Datasource,ID=ThisItem.ID)

  • Verified answer
    antonio_piernav Profile Picture
    125 on at
    What a good solution! It work very well...thank you very much you have helped me a lot, thank!!
  • ITCareNV Profile Picture
    574 on at

    @antonio_piernav

     

    I am facing the same issue here but i think either i am overseeing someting or you are Smiley Very Happy

    So lets say you have 2 datasources, lets call them S1 and S2.

    S1 has 5 items so therefore lets say they each have id's incrementing (1,2,3,4,5), same for S2.

     

    Now what happens when you apply above functions (lets say ThisItem.ID is 2), it will delete an item with ID 2 in S1 AND in S2 isn't it?

     

    So i don't get why this removeIf with the nested if's is not working... it should be possible.

    Let me know what you think about it please.

    Kind regards

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard