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

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Non-unique data

(0) ShareShare
ReportReport
Posted on by 129

Hi there,

 

I have an app that uses a delivery and billing system. In this system, a service can have the same name several times in different orders.

 

When I invoice, I need to be able to select the service and then display the invoice for that service.

 

At present, I filter my invoice using this formula:

Filter(
 'CRM - Facturation';
 Client.Client = Choix_Cde_Client.Selected.Client && Commande.Commande = Choix_Cde_Cde.Selected.Commande && Prestation.Prestation = Gallery_Presta.Selected.Prestation;
 'Ligne/Tâche'.'Ligne/Tâche' = Choix_Cde_LigneTache.Selected.'Ligne/Tâche'
)

 

This allows me to see only those invoices that are linked to a customer, an order, a line/task and/or a service.

 

There is a screenshot to help you understand:

TomVictor_0-1700472712912.png

There should only be one invoice, but in this screenshot we can see that there are several.

 

Hope you can help me,

 

Regards,

Tom Victor

Categories:
I have the same question (0)
  • Verified answer
    Chris-D Profile Picture
    1,246 on at

    Hi @TomVictor, I don't understand from the screenshot where this is failing? I see the list of services, I can't see where you're having a problem displaying the invoices? 

     

    Without seeing your data, what I would do here is have a column in the Invoice table called Service_ID, which stores the ID number of the service it's linked to. 

     

    Then when you need to recall the invoice, you'd look up the invoice where Service_ID = ThisItem.ID in your service list gallery.

  • CU22100725-0 Profile Picture
    129 on at

    Hi @Chris-D 

     

    On the right side, I have a scroll bar with many invoices displayed and I only need one.

     

    I will try your idea, I think it's a good one

  • Akash1ve Profile Picture
    112 on at

    .

  • Verified answer
    Chris-D Profile Picture
    1,246 on at

    ok I see the scrollbar. 

     

    Yes, linking the invoices with the service ID is the only way to do this really. If there is a chance your 3 columns, Client, Commande and Prestation will not be unique then you would always have the possibility of multiple results. 

    The other way, if there is always only one invoice with each service, is just to include the columns from the invoice table with the service table? 

  • CU22100725-0 Profile Picture
    129 on at

    I tried your idea @Chris-D and you are right it's the only way to do this.

     

    Now I have another issue, I can't get other service ID. I don't know why but I only get one of them and the rest is in the void.

     

    I send another screenshot for this issue

    TomVictor_0-1700477120062.png

     

    It's the same name and I can't get the ID of the down one.

  • Chris-D Profile Picture
    1,246 on at

    I'm not sure what you mean here. I don't recognise that as an ID field, is it a GUID? 

  • CU22100725-0 Profile Picture
    129 on at

    Yes it's a GUID and not an ID, I'm not sure if dataverse have another ID than the GUID

  • Chris-D Profile Picture
    1,246 on at

    Ohh ok. I've not done much with Dataverse yet, I work mainly with SP lists, so I'm not sure how it would work in DV. Maybe you need a different column type or something. 

     

    Maybe ask this as a different question for that issue. 

  • CU22100725-0 Profile Picture
    129 on at

    Sure thanks for your help !

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard