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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors