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 / Distinct 2 columns or ...
Power Apps
Answered

Distinct 2 columns or distinct groupby function

(0) ShareShare
ReportReport
Posted on by 302

Hello there!

I have a Sharepoint list with 2 columns;    MontageFirma & MontageFirma2

 

These columns show the company working on a certain project, there can max be 2 companies working on 1 order. I need to have all companies in a dropdown only once. 

I tried to find a way with Distinct, but you can't distinct on 2 columns. 

Currently I got this code, but there are duplicates;

GroupBy(
 'D-Nummers-OpleverApp';
 "MontageFirma";
 "MontageFirma2";
 "MontageRecords"
)
Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @efeewfew ,

     

    Could you prvide a sample data(list) ? (Initial data - > Target data)

     

    I think this is a simple requirement .

     

    Best Regards,

    Wearsky

  • efeewfew Profile Picture
    302 on at

    Of course @v-xiaochen-msft , here is a screenshot of my data:

    2 simple text columns that have the company name in it

    efeewfew_0-1629111210488.png

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @efeewfew 

    Collect(mf,Distinct(SPlist,MontageFirma));

    Collect(mf,Distinct(SPlist,MontageFirma2));

    mf will be a list of all of the firms in both lists. If there are duplicates in the collection, mf, you can create another collection using Distinct() on mf.

    Collect(mf2,Distinct(mf,Result))

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard