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 / Microsoft Lists - Crea...
Power Apps
Unanswered

Microsoft Lists - Creating a unique SKU from a calculated column, fetching the [Type de produit] column and adding unique numbers at the end

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to figure out the best way to add a calculated column that would generate a SKU value for products we have at our company. These products are for employees (either welcome gifts or items being borrowed). 

Some items such as water bottles with our branding, we have over 800, but would be counted as 1 row.

I need a unique SKU because, let's say we have 3 types of water bottles, the SKU would look like:

Bouteille-001

Bouteille-002

Bouteille-003

 

This would be to identify different water bottle types. If I could have it where the first digit of the 000 would be the material for example (1 = plastic, 2 = metal, 3 = etc), that would be even better, and the second digit would be the color (1=white, 2= black, 3=red)

 

So, a Plastic, Red bottle would be

Bouteille-131

and if there were more than 1 type of red plastic bottle, the next one generated in the calculated column would be 

Bouteille-132

 

First off, is it possible to do this in Microsoft Lists?

If so, how would I go about it?

 

I currently was going to start with this, but this formula seems to be incompatible or not working with lists

=CONCATENATE([Type de Produit]], "-", TEXT(NEWID(), "D"))

 

Here is a picture of what the list looks like:

zboland_0-1691035548727.png

 

 

I would be grateful for any help I can get with this.

Thanks,

Zach

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I made a sample.

    vxiaochenmsft_0-1691115676410.png

    vxiaochenmsft_1-1691115688721.png

    ForAll(Ungroup(ForAll(AddColumns(GroupBy(AddColumns(LIST21,"tempType",Type1.Value),"tempType","temp2"),"num",CountRows(temp2)) As var,ForAll(Sequence(var.num),{ID:Index(Filter(LIST21,Type1.Value=var.tempType),Value).ID,tempSKU:var.tempType&Text(Value,"-000")})),"Value") As var2,Patch(LIST21,LookUp(LIST21,ID=var2.ID),{SKU:var2.tempSKU}))

    vxiaochenmsft_2-1691115715275.png

     

    Best Regards,

    Wearsky

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply @v-xiaochen-msft, is it possible to do such a thing with Lists only? Since I am not having the users interact with a power app interface, but only a Microsoft List

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard