Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rodfernandez
Helper I
Helper I

Categorize data based on 3 columns

Hi,
i need to create a colum that asigne a value based on other 3 columns.

for example, i have this data table

 

IDDateType
10001-01-2021   1
10002-01-20212
10003-01-20211
10005-01-20213
10102-01-20211
10104-01-20212
10103-01-20213
10205-01-20211
10210-01-20211
10211-01-20211



I need to create a new column that for each same ID and type it, assign a letter (from "a" to "z") depending on which came first.
The result should be something like this

IDDateTypeNew Column
10001-01-2021   11.a
10002-01-202122.a
10003-01-202111.b
10005-01-202133.a
10102-01-202111.a
10104-01-202122.a
10103-01-202133.a
10205-01-202111.a
10210-01-202111.b
10211-01-202111.c



Thanks

1 ACCEPTED SOLUTION
Payeras_BI
Super User
Super User

Hi @rodfernandez ,

Find attached the pbix file with my proposal.

EDIT: Re attached again removing some unnecessary steps and adding List.Buffer.

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

2 REPLIES 2
Payeras_BI
Super User
Super User

Hi @rodfernandez ,

Find attached the pbix file with my proposal.

EDIT: Re attached again removing some unnecessary steps and adding List.Buffer.

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Perfect, Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors